Module:languages: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 586: Line 586:


if not (forceDetect or first_sc == "Hants" or codes_len > 1) then
if not (forceDetect or first_sc == "Hants" or codes_len > 1) then
first_sc = get_script(first_sc)
first_sc = require("Module:scripts").getByCode(first_sc)
local charset = first_sc.characters
local charset = first_sc.characters
return charset and umatch(text, "[" .. charset .. "]") and first_sc or get_script("None")
return charset and umatch(text, "[" .. charset .. "]") and first_sc or get_script("None")

Navigation menu