Module:Color contrast: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(Undid revision 757931345 by Frietjes (talk))
(fix for encoded # in hex or decimal (screws up assumption that we can split on ;))
Line 167: Line 167:
end
end


local slist = mw.text.split(style or '', ';')
local slist = mw.text.split(mw.ustring.gsub(mw.ustring.gsub(style or '', '&#[Xx]23;', '#'), '#', '#'), ';')
for k = 1,#slist do
for k = 1,#slist do
s = slist[k]
s = slist[k]