Use string.split instead of strsplit

Some users have addons that pollute the global namespace with a version of strsplit that doesn't match Blizzard's spec
Closes #31
This commit is contained in:
Brues
2026-07-27 15:46:57 -05:00
parent 00292ca3b4
commit 487af0c8f4
+2 -1
View File
@@ -101,9 +101,10 @@ mod = math.mod or mod
-- characters (bytes) in the string.
-- 'subject' [string] String to split.
-- return: [list] a list of strings.
local stringsplit = _G.string.split
function pfUI.api.strsplit(delimiter, subject)
if not subject then return nil end
return _G.strsplit(delimiter or ":", subject)
return stringsplit(delimiter or ":", subject)
end
-- [ isempty ]