From 31d7c43d4764bd5e44b6339a64cb5566d98f1953 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Tue, 31 Dec 2013 16:17:42 +0100 Subject: sync with Context as of 2013-12-31 --- lualibs-util-prs.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lualibs-util-prs.lua') diff --git a/lualibs-util-prs.lua b/lualibs-util-prs.lua index 9518b7f..e5b35a7 100644 --- a/lualibs-util-prs.lua +++ b/lualibs-util-prs.lua @@ -184,8 +184,10 @@ function parsers.settings_to_array(str,strict) else return { str } end - else + elseif find(str,",") then return lpegmatch(pattern,str) + else + return { str } end end -- cgit v1.2.3