mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 08:13:21 +00:00
Fixed trim error
This commit is contained in:
@@ -12,5 +12,9 @@ ESX.Math.GroupDigits = function(value)
|
||||
end
|
||||
|
||||
ESX.Math.Trim = function(value)
|
||||
return (string.gsub(value, "^%s*(.-)%s*$", "%1"))
|
||||
if value then
|
||||
return (string.gsub(value, "^%s*(.-)%s*$", "%1"))
|
||||
else
|
||||
return nil
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user