Lua math lib fixes

This commit is contained in:
Zef Hemel
2025-01-17 18:32:01 +01:00
parent 0076208658
commit 6a65912b94
2 changed files with 18 additions and 1 deletions
+9
View File
@@ -204,4 +204,13 @@ export const stringApi = new LuaTable({
endswith: new LuaBuiltinFunction((_sf, s: string, suffix: string) => {
return s.endsWith(suffix);
}),
trim: new LuaBuiltinFunction((_sf, s: string) => {
return s.trim();
}),
trim_start: new LuaBuiltinFunction((_sf, s: string) => {
return s.trimStart();
}),
trim_end: new LuaBuiltinFunction((_sf, s: string) => {
return s.trimEnd();
}),
});