From: Joey Hess Date: Mon, 4 Aug 2008 02:01:11 +0000 (-0400) Subject: loosen qw regexp X-Git-Tag: 2.60~80 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a4ce6550ebc21f07caadec2d4e7903e2821b812b;p=ikiwiki.git loosen qw regexp --- diff --git a/IkiWiki/Setup/Standard.pm b/IkiWiki/Setup/Standard.pm index e77b20ffd..8a11b2ec6 100644 --- a/IkiWiki/Setup/Standard.pm +++ b/IkiWiki/Setup/Standard.pm @@ -32,7 +32,7 @@ sub dumpline ($$$$) { #{{{ # avoid quotes $dumpedvalue=$value; } - elsif (ref $value eq 'ARRAY' && @$value && ! grep { /[^-A-Za-z0-9_]/ } @$value) { + elsif (ref $value eq 'ARRAY' && @$value && ! grep { /[^\S]/ } @$value) { # dump simple array as qw{} $dumpedvalue="[qw{".join(" ", @$value)."}]"; }