"[chore] migrate lua code to be compatible with 5.5 syntax.

This commit is contained in:
2026-05-09 01:31:32 +08:00
parent 90bdf8464d
commit dab0f20851
4 changed files with 12 additions and 10 deletions

View File

@@ -21,7 +21,6 @@ local function get_pos( text, char )
local first_char = tmp:sub( 1, utf8.offset( tmp, 2 ) - 1 )
if first_char == char then pos[i] = true end
tmp = tmp:gsub( '^' .. first_char, '' )
i = i + 1
end
end
return pos