Module:ColorParse: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 35: Line 35:
   local b = normalize(frame.args[1],regextype)
   local b = normalize(frame.args[1],regextype)
   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 and text ~= "" then
           local hexcolor = luatable.parse(color)
           local hexcolor = luatable.parse(color)
           if hexcolor == nil then
           if hexcolor == nil then