Module:ColorParse: Difference between revisions

38 bytes added ,  16:20, 16 June 2019
Parse now removes curly braces from text
(Moved out of sandbox)
 
(Parse now removes curly braces from text)
Line 2: Line 2:


function p.parse(frame)
function p.parse(frame)
local a = string.gsub(frame.args[1],"(&)(%w)([^&\n]*)", function(_,color,text)
local b = string.gsub(frame.args[1],"([{}])", "")
local a = string.gsub(b,"(&)(%w)([^&\n]*)", function(_,color,text)
         local luatable = {
         local luatable = {
             ['r'] = "#a64a2e",
             ['r'] = "#a64a2e",