Module:Extract text: Difference between revisions
Jump to navigation
Jump to search
(Created page with "local ExtractText = {} function ExtractText.from_parentheses(frame) local match_result = frame.args[1]:match'%((.*)%)' if match_result == nil then error'The text did no...") |
(this might be more useful) |
||
Line 5: | Line 5: | ||
if match_result == nil then | if match_result == nil then | ||
return nil | |||
else | else | ||
return match_result | return match_result |