From a4ce6550ebc21f07caadec2d4e7903e2821b812b Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 3 Aug 2008 22:01:11 -0400 Subject: [PATCH] loosen qw regexp --- IkiWiki/Setup/Standard.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)."}]"; } -- 2.26.2