diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2010-02-26 11:49:51 -0500 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2010-02-26 11:49:51 -0500 |
commit | b3c3c42b269c102123dcd80979cb9c49ce13bca7 (patch) | |
tree | dcab5238b0fbcbb98e5b63b6f3b22f1dc6ae8fb6 /IkiWiki.pm | |
parent | 068e47aa459028c260880ed5f27da2044cb79998 (diff) | |
download | ikiwiki-b3c3c42b269c102123dcd80979cb9c49ce13bca7.tar ikiwiki-b3c3c42b269c102123dcd80979cb9c49ce13bca7.tar.gz |
Loosen regexp, to allow empty quoted parameters in directives.
Diffstat (limited to 'IkiWiki.pm')
-rw-r--r-- | IkiWiki.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm index b9a419d1d..9df6c90d6 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -1220,7 +1220,7 @@ sub preprocess ($$$;$$) { (?: """(.*?)""" # 2: triple-quoted value | - "([^"]+)" # 3: single-quoted value + "([^"]*?)" # 3: single-quoted value | (\S+) # 4: unquoted value ) @@ -1306,7 +1306,7 @@ sub preprocess ($$$;$$) { (?: """.*?""" # triple-quoted value | - "[^"]+" # single-quoted value + "[^"]*?" # single-quoted value | [^"\s\]]+ # unquoted value ) @@ -1329,7 +1329,7 @@ sub preprocess ($$$;$$) { (?: """.*?""" # triple-quoted value | - "[^"]+" # single-quoted value + "[^"]*?" # single-quoted value | [^"\s\]]+ # unquoted value ) |