Lua: huge API breaking change: converted all snake_case APIs to camelCase

This commit is contained in:
Zef Hemel
2025-02-06 10:04:45 +01:00
parent 0635faabfc
commit a169406d37
42 changed files with 377 additions and 599 deletions
+4 -4
View File
@@ -207,18 +207,18 @@ export const stringApi = new LuaTable({
trim: new LuaBuiltinFunction((_sf, s: string) => {
return s.trim();
}),
trim_start: new LuaBuiltinFunction((_sf, s: string) => {
trimStart: new LuaBuiltinFunction((_sf, s: string) => {
return s.trimStart();
}),
trim_end: new LuaBuiltinFunction((_sf, s: string) => {
trimEnd: new LuaBuiltinFunction((_sf, s: string) => {
return s.trimEnd();
}),
match_regex: new LuaBuiltinFunction((_sf, s: string, pattern: string) => {
matchRegex: new LuaBuiltinFunction((_sf, s: string, pattern: string) => {
const regex = new RegExp(pattern);
const result = s.match(regex);
return jsToLuaValue(result);
}),
match_regex_all: new LuaBuiltinFunction((_sf, s: string, pattern: string) => {
matchRegexAll: new LuaBuiltinFunction((_sf, s: string, pattern: string) => {
const regex = new RegExp(pattern, "g");
return () => {
const match = regex.exec(s);