Anonymous user
Module:ISO 3166: Difference between revisions
m
no edit summary
No edit summary |
mNo edit summary |
||
Line 15:
local function strip(text)
text = string.upper(text) --Case insensitivity
text = string.gsub(text,"[%s%-%,%.%(%)%/%\']","") --Remove spacing and punctuation▼
text = string.gsub(text,"^THE ","") --Remove definite article
▲ text = string.gsub(text,"[%s%-%,%.%(%)%/%\']","") --Remove spacing and punctuation
--text = string.gsub(text,"[\768-\879]","") --Unicode deaccenting doesn't work
return text
|