Add string.format shortcut to lua

This commit is contained in:
2025-03-27 15:38:07 +01:00
parent 001470ffe4
commit 3e818e61c7

View File

@@ -205,6 +205,7 @@ function floor(x) return math.floor(x) end
function ceil(x) return math.ceil(x) end function ceil(x) return math.ceil(x) end
function upper(s) return string.upper(s) end function upper(s) return string.upper(s) end
function lower(s) return string.lower(s) end function lower(s) return string.lower(s) end
function format(s, ...) return string.format(s, ...) end
-- String to number conversion helper -- String to number conversion helper
function num(str) function num(str)