From: Paul Hänsch Date: Thu, 23 Oct 2025 07:44:36 +0000 (+0200) Subject: bugfix split function: allow empty components X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=c2a1a4d797860ad601db990cede7414acbf3cb12;p=confetti bugfix split function: allow empty components --- diff --git a/lua/vcard.lua b/lua/vcard.lua index 3066737..248cca3 100644 --- a/lua/vcard.lua +++ b/lua/vcard.lua @@ -124,7 +124,7 @@ function Vcard:_split_by(line, split) table.insert(r, "") line = line:sub(2) end - f = line:match("^(\\.)") or line:match("^([^\\" .. split .. "]+)") + f = line:match("^(\\.)") or line:match("^([^\\" .. split .. "]+)") or "" r[#r] = r[#r] .. f line = line:sub(#f + 1) end