]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
Allow dots in parameter key names
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Fri, 9 Nov 2012 10:39:23 +0000 (11:39 +0100)
committerJoey Hess <joey@kitenet.net>
Fri, 15 Feb 2013 21:24:33 +0000 (17:24 -0400)
This allows e.g. the meta command to be used to introduce DublinCore
metadata.

IkiWiki.pm

index 52da3c112b26289298ef2a4a1faf7636ec6ff119..0570c8bc521c3989d1c733cfb1b16fedd6770ca7 100644 (file)
@@ -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
                                                |