From 186a76ec208bdf55082ead7fe83a7eb16caeba32 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Fri, 9 Nov 2012 11:39:23 +0100 Subject: [PATCH] Allow dots in parameter key names This allows e.g. the meta command to be used to introduce DublinCore metadata. --- IkiWiki.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/IkiWiki.pm b/IkiWiki.pm index 52da3c112..0570c8bc5 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -1433,7 +1433,7 @@ sub preprocess ($$$;$$) { # consider it significant. my @params; while ($params =~ m{ - (?:([-\w]+)=)? # 1: named parameter key? + (?:([-.\w]+)=)? # 1: named parameter key? (?: """(.*?)""" # 2: triple-quoted value | @@ -1530,7 +1530,7 @@ sub preprocess ($$$;$$) { ( # 4: the parameters.. \s+ # Must have space if parameters present (?: - (?:[-\w]+=)? # named parameter key? + (?:[-.\w]+=)? # named parameter key? (?: """.*?""" # triple-quoted value | @@ -1558,7 +1558,7 @@ sub preprocess ($$$;$$) { \s+ ( # 4: the parameters.. (?: - (?:[-\w]+=)? # named parameter key? + (?:[-.\w]+=)? # named parameter key? (?: """.*?""" # triple-quoted value |