Module:ColorParse: Difference between revisions

6 bytes added ,  18:34, 22 October 2019
m
no edit summary
mNo edit summary
mNo edit summary
Line 36: Line 36:
   local a = string.gsub(b, regex, function(_,color,text)
   local a = string.gsub(b, regex, function(_,color,text)
       if text ~= nil or text ~= "" then
       if text ~= nil or text ~= "" then
           local hexcolor = luatable[color]
           local hexcolor = luatable.parse(color)
           if hexcolor == nil then
           if hexcolor == nil then
             error ("There was no specified color for color code: " .. color)
             error ("There was no specified color for color code: " .. color)