Module:Str find word: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 4:
-- todo: sep = len 1 max?; return string has comma-space not just comma
-- ? not %escape then?
-- todo literal qupotesquotes = default? case=false =default (speed)
--option keep order
-- option loop list
Line 364:
newArgs['orString'] = decodeUnicode(origArgs['orw'] or origArgs['orwords'] or '')
-- boolean options: catch both parameters, also handle nil & nonsense input values:
newArgs['case'] = yesno(origArgs['case'] or origArgs['casesensitive'] or falsetrue, falsetrue) -- defaults to FalseTrue
newArgs['booleans'] = yesno(origArgs['bool'] or origArgs['booleans'] or false, false) -- defaults to False
newArgs['literals'] = yesno(origArgs['literals'] or origArgs['lit'] or true, true) -- defaults to True