Module:Qhm: Difference between revisions

From WormRP
Jump to navigation Jump to search
fix corner case
 
Keira (talk | contribs)
m 1 revision imported
 
(No difference)

Latest revision as of 11:32, 15 April 2018

Documentation for this module may be created at Module:Qhm/doc

local p = {}

function p.main(frame)
	local out = mw.ustring.gsub(frame:getParent().args[1] or "","%[%[ *([%?-]) *%]%]","%1")
	out = mw.ustring.gsub(out,"%[%[ *[%?-] *| *(.-) *%]%]","%1")
	return out
end

return p