Module:languages: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 587: Line 587:
first_sc = get_script(first_sc)
first_sc = get_script(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")
end
end