Module:Extract text: Difference between revisions

89 bytes removed ,  23:06, 13 December 2020
m
simplify
(this might be more useful)
m (simplify)
 
Line 2: Line 2:


function ExtractText.from_parentheses(frame)
function ExtractText.from_parentheses(frame)
local match_result = frame.args[1]:match'%((.*)%)'
return (frame.args[1]:match'%((.*)%)')
if match_result == nil then
return nil
else
return match_result
end
end
end


return ExtractText
return ExtractText