summaryrefslogtreecommitdiff
path: root/lualibs-util-prs.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-12-14 14:31:43 +0100
committerPhilipp Gesang <phg42.2a@gmail.com>2013-12-14 14:31:43 +0100
commita82cbf2bce00df54f59d1b81805e8b40029b93c6 (patch)
treeda13b16e2ff9c367cff159a3e0f951046ecb1940 /lualibs-util-prs.lua
parent3c357e43af3900df8d6de9ec08e05222ea4256eb (diff)
downloadlualibs-a82cbf2bce00df54f59d1b81805e8b40029b93c6.tar.gz
sync with Context as of 2013-12-14
Diffstat (limited to 'lualibs-util-prs.lua')
-rw-r--r--lualibs-util-prs.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lualibs-util-prs.lua b/lualibs-util-prs.lua
index 29a57e0..9518b7f 100644
--- a/lualibs-util-prs.lua
+++ b/lualibs-util-prs.lua
@@ -483,8 +483,8 @@ function parsers.rfc4180splitter(specification)
* Cs((dquotechar + (1 - quotechar))^0)
* quotechar
local non_escaped = C((1 - quotechar - newline - separator)^1)
- local field = escaped + non_escaped
- local record = Ct((field * separator^-1)^1)
+ local field = escaped + non_escaped + Cc("")
+ local record = Ct(field * (separator * field)^1)
local headerline = record * Cp()
local wholeblob = Ct((newline^-1 * record)^0)
return function(data,getheader)