This commit is contained in:
Xertis
2025-02-10 16:39:05 +03:00
parent 185b0e5cbd
commit 78ceff54e7
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -292,7 +292,7 @@ function string.trim_left(s, char)
return string.match(s, "^" .. char .. "*(.+)$") or s
end
function string.padding(str, size, char)
function string.pad(str, size, char)
char = char == nil and " " or char
local padding = math.floor((size - #str) / 2)