mirror of
https://github.com/ershisan99/www.git
synced 2025-12-17 12:34:17 +00:00
update lua table parser
This commit is contained in:
@@ -1418,7 +1418,7 @@ type JsonValue =
|
||||
| JsonValue[]
|
||||
| { [key: string]: JsonValue }
|
||||
|
||||
async function luaTableToJson(luaString: string): string {
|
||||
async function luaTableToJson(luaString: string) {
|
||||
const str = luaString.replace(/^return\s*/, '')
|
||||
return LuaToJsonConverter.convert(str)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user