diff options
Diffstat (limited to 'strutil.lua')
-rw-r--r-- | strutil.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/strutil.lua b/strutil.lua new file mode 100644 index 0000000..47ddb06 --- /dev/null +++ b/strutil.lua @@ -0,0 +1,7 @@ +local function splitw(str) + local res = {} + for s in str:gmatch("%S+") do + table.insert(res,s) + end + return res +end |