Allow dots in parameter key names

This allows e.g. the meta command to be used to introduce DublinCore
metadata.
master
Giuseppe Bilotta 2012-11-09 11:39:23 +01:00 committed by Joey Hess
parent 432499c2ba
commit 186a76ec20
1 changed files with 3 additions and 3 deletions

View File

@ -1433,7 +1433,7 @@ sub preprocess ($$$;$$) {
# consider it significant. # consider it significant.
my @params; my @params;
while ($params =~ m{ while ($params =~ m{
(?:([-\w]+)=)? # 1: named parameter key? (?:([-.\w]+)=)? # 1: named parameter key?
(?: (?:
"""(.*?)""" # 2: triple-quoted value """(.*?)""" # 2: triple-quoted value
| |
@ -1530,7 +1530,7 @@ sub preprocess ($$$;$$) {
( # 4: the parameters.. ( # 4: the parameters..
\s+ # Must have space if parameters present \s+ # Must have space if parameters present
(?: (?:
(?:[-\w]+=)? # named parameter key? (?:[-.\w]+=)? # named parameter key?
(?: (?:
""".*?""" # triple-quoted value """.*?""" # triple-quoted value
| |
@ -1558,7 +1558,7 @@ sub preprocess ($$$;$$) {
\s+ \s+
( # 4: the parameters.. ( # 4: the parameters..
(?: (?:
(?:[-\w]+=)? # named parameter key? (?:[-.\w]+=)? # named parameter key?
(?: (?:
""".*?""" # triple-quoted value """.*?""" # triple-quoted value
| |