Have partitioner split on "," instead of space
This commit is contained in:
@@ -373,7 +373,7 @@ function shared.Whoer.Init()
|
|||||||
---@return string[]
|
---@return string[]
|
||||||
local function Partition(text, size)
|
local function Partition(text, size)
|
||||||
local words = {}
|
local words = {}
|
||||||
for word in text:gmatch("%S+") do
|
for word in text:gmatch("[^,]+") do
|
||||||
words[#words + 1] = word
|
words[#words + 1] = word
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user