From 072a8e9df270328acd6789f532daa285a9a8a8d0 Mon Sep 17 00:00:00 2001 From: James Bradbury Date: Thu, 14 Jul 2022 11:55:58 +0100 Subject: [PATCH] properly string split --- lib/utils.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils.lua b/lib/utils.lua index 177ae7b..ddab75f 100644 --- a/lib/utils.lua +++ b/lib/utils.lua @@ -266,7 +266,7 @@ end utils.split_space = function(input_string) -- Splits an seperated by spaces into a table local t = {} - for word in input_string:gmatch("%w+") do table.insert(t, word) end + for word in input_string:gmatch("%S+") do table.insert(t, word) end return t end