Module:languages: Difference between revisions

No edit summary
No edit summary
Line 966: Line 966:
local charset = first_sc.characters
local charset = first_sc.characters
if charset and charset:find("%]") then
return charset and umatch(text, "[" .. ugsub(charset, "%]", "%%]") .. "]") and first_sc or get_script("None")
charset = "]" .. charset:gsub("%]", "")
end
return charset and umatch(text, "[" .. charset .. "]") and first_sc or get_script("None")
end
end