Module:String2: Difference between revisions

Content deleted Content added
Reverted to revision 868634255 by RexxS (talk): Test order. (TW)
clarify & spelling
Line 98:
-- of one piece of text ("match") inside another ("str").
-- It returns nil if no match is found, or if either parameter is blank.
-- It takes the text to be searched in as the first unnamed parameter, which is trimmed.
-- It takes the text to search formatch as the second unnamed parameter, which is trimmed and
-- any doubeldouble quotes " are stripped out.
p.posnq = function(frame)
local str = mw.text.trim(frame.args[1] or "")