Commit c1915413 authored by Eben Blaisdell's avatar Eben Blaisdell

dev change

parent d45eb472
......@@ -90,7 +90,7 @@ end
-- Split text into a list consisting of the strings in text,
-- separated by strings matching delimiter (which may be a pattern).
-- example: strsplit(",%s*", "Anna, Bob, Charlie,Dolores")
-- due to
-- due in large part to
function strsplit(delimiter, text)
local list = {}
local pos = 1
......@@ -100,10 +100,10 @@ function strsplit(delimiter, text)
while 1 do
local first, last = string.find(text, delimiter, pos)
if first then -- found?
tinsert(list, string.sub(text, pos, first-1))
table.insert(list, string.sub(text, pos, first-1))
pos = last+1
tinsert(list, string.sub(text, pos))
table.insert(list, string.sub(text, pos))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment