From 487af0c8f42a0b0c73b39e25effe97932087dffc Mon Sep 17 00:00:00 2001 From: Brues <5278969+brues-code@users.noreply.github.com> Date: Mon, 27 Jul 2026 15:46:57 -0500 Subject: [PATCH] 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 --- api/api.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/api.lua b/api/api.lua index 878ed9c9..df45a123 100644 --- a/api/api.lua +++ b/api/api.lua @@ -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 ]