diff options
Diffstat (limited to 'lib/App/DocKnot/Generate.pm')
-rw-r--r-- | lib/App/DocKnot/Generate.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/App/DocKnot/Generate.pm b/lib/App/DocKnot/Generate.pm index 2869c14..49b73a3 100644 --- a/lib/App/DocKnot/Generate.pm +++ b/lib/App/DocKnot/Generate.pm @@ -10,7 +10,7 @@ # Modules and declarations ############################################################################## -package App::DocKnot::Generate 4.01; +package App::DocKnot::Generate 5.00; use 5.024; use autodie; @@ -178,7 +178,7 @@ sub _code_for_to_text { my @paragraphs = split(m{ \n\n }xms, $text); for my $para (@paragraphs) { my %urls; - while ($para =~ s{ \[ ([^\]]+) \] [(] (\S+) [)] }{$1 [$ref]}xms) { + while ($para =~ s{ \[([^\]]+)\] [(] (\S+) [)] }{$1 [$ref]}xms) { $urls{$ref} = $2; $ref++; } |