Module:ColorParse: Difference between revisions

39 bytes added ,  03:10, 23 June 2019
now it snips out ~J211 too
(Parse now removes curly braces from text)
(now it snips out ~J211 too)
Line 3: Line 3:
function p.parse(frame)
function p.parse(frame)
local b = string.gsub(frame.args[1],"([{}])", "")
local b = string.gsub(frame.args[1],"([{}])", "")
local b = string.gsub(b,"(~J211)", "")
local a = string.gsub(b,"(&)(%w)([^&\n]*)", function(_,color,text)
local a = string.gsub(b,"(&)(%w)([^&\n]*)", function(_,color,text)
         local luatable = {
         local luatable = {