Skip to content

Commit f33ef5a

Browse files
committed
Update v1.4.3
* Put MSK.Trim functions together
1 parent e41b77e commit f33ef5a

File tree

4 files changed

+8
-14
lines changed

4 files changed

+8
-14
lines changed

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.4.2
1+
1.4.3

client.lua

+3-6
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,9 @@ MSK.Round = function(num, decimal)
2727
return tonumber(string.format("%." .. (decimal or 0) .. "f", num))
2828
end
2929

30-
MSK.Trim = function(str)
31-
return (string.gsub(str, "%s+", ""))
32-
end
33-
34-
MSK.Trim_ = function(str)
35-
return (str:gsub("^%s*(.-)%s*$", "%1"))
30+
MSK.Trim = function(str, bool)
31+
if bool then return (str:gsub("^%s*(.-)%s*$", "%1")) end
32+
return (str:gsub("%s+", ""))
3633
end
3734

3835
MSK.Notification = function(text)

fxmanifest.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ games { 'gta5' }
44
author 'Musiker15 - MSK Scripts'
55
name 'msk_core'
66
description 'Core functions for MSK Scripts'
7-
version '1.4.2'
7+
version '1.4.3'
88

99
lua54 'yes'
1010

server.lua

+3-6
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,9 @@ MSK.Round = function(num, decimal)
3535
return tonumber(string.format("%." .. (decimal or 0) .. "f", num))
3636
end
3737

38-
MSK.Trim = function(str)
39-
return (string.gsub(str, "%s+", ""))
40-
end
41-
42-
MSK.Trim_ = function(str)
43-
return (str:gsub("^%s*(.-)%s*$", "%1"))
38+
MSK.Trim = function(str, bool)
39+
if bool then return (str:gsub("^%s*(.-)%s*$", "%1")) end
40+
return (str:gsub("%s+", ""))
4441
end
4542

4643
MSK.RegisterCommand = function(name, group, cb, console, framework, suggestion)

0 commit comments

Comments
 (0)