Module:ISO 3166: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
No edit summary |
mNo edit summary |
||
Line 15: | Line 15: | ||
local function strip(text) |
local function strip(text) |
||
text = string.upper(text) --Case insensitivity |
text = string.upper(text) --Case insensitivity |
||
⚫ | |||
text = string.gsub(text,"^THE ","") --Remove definite article |
text = string.gsub(text,"^THE ","") --Remove definite article |
||
⚫ | |||
--text = string.gsub(text,"[\768-\879]","") --Unicode deaccenting doesn't work |
--text = string.gsub(text,"[\768-\879]","") --Unicode deaccenting doesn't work |
||
return text |
return text |