Module:String2: Difference between revisions

Content deleted Content added
function one2a
suppress second returned value
Line 143:
local txt = mw.text.trim(args[1] or args.txt or "")
if txt == "" then return nil end
returntxt = txt:gsub(" one ", " a "):gsub("One ", "A "):gsub("a ([aeiou])", "an %1"):gsub("A ([aeiou])", "An %1")
return txt
end