Module:String2: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
suppress second returned value
(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
 
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu