Skip to content

Commit 5dd546a

Browse files
committed
Correct line splitting function
1 parent f2796d3 commit 5dd546a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/eca/utils.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ end
4444
---@return string[]
4545
function M.split_lines(text)
4646
local lines = {}
47-
for line in text:gmatch("[^\r\n]*") do
47+
for line in text:gmatch("[^\r\n]+") do
4848
table.insert(lines, line)
4949
end
5050
return lines

0 commit comments

Comments
 (0)