mirror of
https://github.com/Bluewhale1337/HealBotBlue.git
synced 2026-09-11 09:50:21 +00:00
fix: handle empty or missing delimiters in HealBot_SplitString to prevent errors
This commit is contained in:
@@ -123,6 +123,9 @@ end
|
||||
|
||||
function HealBot_SplitString(str, delimiter)
|
||||
local result = {}
|
||||
if not delimiter or delimiter == "" then
|
||||
return {str}
|
||||
end
|
||||
local start_pos = 1
|
||||
while true do
|
||||
local end_pos = string.find(str, delimiter, start_pos, true)
|
||||
|
||||
Reference in New Issue
Block a user