"ماڈیول:String" کے نسخوں کے درمیان فرق
export str._match function for use in other modules - syncing from sandbox |
update renamed variable |
||
سطر 149: | سطر 149: | ||
]] | ]] | ||
-- 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_flag, nomatch ) | ||
if s == '' then | if s == '' then | ||
return str._error( 'Target string is empty' ); | return str._error( 'Target string is empty' ); | ||
سطر 219: | سطر 219: | ||
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_flag, nomatch ) | ||
end | end | ||