6 lines
135 B
Plaintext
6 lines
135 B
Plaintext
|
split = (s, delimiter) ->
|
||
|
result = {}
|
||
|
for match in (s..delimiter)\gmatch "(.-)"..delimiter
|
||
|
table.insert result, match
|
||
|
result
|