mirror of
https://github.com/joe7575/techpack.git
synced 2024-12-25 23:17:36 +01:00
safer_lua: fixing string.split issue for seperator value = ''
This commit is contained in:
parent
9a3097a3db
commit
b78d62a7c3
@ -58,6 +58,7 @@ local BASE_ENV = {
|
||||
sub = string.sub,
|
||||
upper = string.upper,
|
||||
split = function(str, separator, include_empty, max_splits, sep_is_pattern)
|
||||
if separator == "" then separator = " " end
|
||||
return safer_lua.Array(unpack(string.split(str, separator, include_empty, max_splits, sep_is_pattern)))
|
||||
end,
|
||||
trim = string.trim,
|
||||
|
Loading…
Reference in New Issue
Block a user