aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/lua_content
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-06-29 17:17:23 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-06-29 17:17:23 +0100
commit034d18670b8ec22a21bb54c967f11d329f9ab98e (patch)
treedeed535373afcef346b1d34629fb36c1f841117c /lualib/lua_content
parent98867787d12f6604694cdea66cc3f63c14887702 (diff)
downloadrspamd-034d18670b8ec22a21bb54c967f11d329f9ab98e.tar.gz
rspamd-034d18670b8ec22a21bb54c967f11d329f9ab98e.zip
[Fix] Ical: Fix identation grammar
Diffstat (limited to 'lualib/lua_content')
-rw-r--r--lualib/lua_content/ical.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lualib/lua_content/ical.lua b/lualib/lua_content/ical.lua
index bb2f52771..ed9a87cc5 100644
--- a/lualib/lua_content/ical.lua
+++ b/lualib/lua_content/ical.lua
@@ -22,12 +22,12 @@ local ical_grammar
local function gen_grammar()
if not ical_grammar then
- local wsp = l.P" "
+ local wsp = l.S(" \t\v\f")
local crlf = l.P"\r"^-1 * l.P"\n"
local eol = (crlf * #crlf) + (crlf - (crlf^-1 * wsp))
local name = l.C((l.P(1) - (l.P":"))^1) / function(v) return (v:gsub("[\n\r]+%s","")) end
local value = l.C((l.P(1) - eol)^0) / function(v) return (v:gsub("[\n\r]+%s","")) end
- ical_grammar = name * ":" * wsp^0 * value * eol
+ ical_grammar = name * ":" * wsp^0 * value * eol^-1
end
return ical_grammar