mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-30 12:01:31 +00:00
Added ESX.Math.Trim function
This commit is contained in:
@@ -10,3 +10,7 @@ ESX.Math.GroupDigits = function(value)
|
||||
|
||||
return left..(num:reverse():gsub('(%d%d%d)','%1' .. _U('locale_digit_grouping_symbol')):reverse())..right
|
||||
end
|
||||
|
||||
ESX.Math.Trim = function(value)
|
||||
return (string.gsub(value, "^%s*(.-)%s*$", "%1"))
|
||||
end
|
||||
Reference in New Issue
Block a user