From e606285aae4fb2ff465bf297dd8bcf8098cf5995 Mon Sep 17 00:00:00 2001 From: Zubrikhin Alexey Date: Fri, 15 May 2015 14:56:07 +1000 Subject: [PATCH] * strip '{{'/'}}' in _parse_include --- lib/Text/Dokuwiki/Parser.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Text/Dokuwiki/Parser.pm b/lib/Text/Dokuwiki/Parser.pm index 1fc54c7..136d0bf 100644 --- a/lib/Text/Dokuwiki/Parser.pm +++ b/lib/Text/Dokuwiki/Parser.pm @@ -119,6 +119,9 @@ sub _parse_link { sub _parse_include { my ($self, $content) = @_; + $content =~ s/^{{//o; + $content =~ s/}}$//o; + if ($content =~ m|^([a-z]+)>(.*)|oi) { ... }