Editing Module:String
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 138: | Line 138: | ||
]] | ]] | ||
-- This sub-routine is exported for use in other modules | -- This sub-routine is exported for use in other modules | ||
function str._match( s, pattern, start, match_index, | function str._match( s, pattern, start, match_index, plain, nomatch ) | ||
if s == '' then | if s == '' then | ||
return str._error( 'Target string is empty' ) | return str._error( 'Target string is empty' ) | ||
Line 251: | Line 251: | ||
local nomatch = new_args['nomatch'] | local nomatch = new_args['nomatch'] | ||
return str._match( s, pattern, start, match_index, | return str._match( s, pattern, start, match_index, plain, nomatch ) | ||
end | end | ||