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 ]