string utilities: fix bug
string utilities: fix bug: a task in smol-software-harbor (Harbor dataset). split in src/strutil.lua drops empty fields ( split("a,,b", ",") gives two fields) and breaks with separators that are special in Lua patterns, such as . or % . Rewrite it so it follows its comment: empty fields are kept…
The task
`split` in `src/strutil.lua` drops empty fields (`split("a,,b", ",")` gives two fields) and breaks with separators that are special in Lua patterns, such as `.` or `%`. Rewrite it so it follows its comment: empty fields are kept and the separator is matched as plain text (it may be longer than one character). Run…
Part of efederici/smol-software-harbor.