summaryrefslogtreecommitdiff
path: root/strutil.lua
diff options
context:
space:
mode:
Diffstat (limited to 'strutil.lua')
-rw-r--r--strutil.lua7
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