Browse Source

* Text::Dokuwiki::Parser : fix regex mod

master
Alex 'AdUser' Z 10 years ago
parent
commit
291014a745
  1. 4
      lib/Text/Dokuwiki/Parser.pm

4
lib/Text/Dokuwiki/Parser.pm

@ -110,7 +110,7 @@ sub _parse_link {
} }
unless ($href =~ m!^[a-z]+://!io) { unless ($href =~ m!^[a-z]+://!io) {
$href =~ s{:}{/}oi; $href =~ s{:}{/}go;
} }
return [a => {href => $href}, @text]; return [a => {href => $href}, @text];
@ -144,7 +144,7 @@ sub _parse_include {
'' ''
>ioe; >ioe;
$src =~ s|:|/|o; $src =~ s|:|/|go;
$attrs{src} = $src; $attrs{src} = $src;
return [img => \%attrs]; return [img => \%attrs];

Loading…
Cancel
Save