From c2a1a4d797860ad601db990cede7414acbf3cb12 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Thu, 23 Oct 2025 09:44:36 +0200 Subject: [PATCH] bugfix split function: allow empty components --- lua/vcard.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5