Modul:Color contrast: Unterschied zwischen den Versionen
fix for encoded # in hex or decimal (screws up assumption that we can split on ;)
K (42 Versionen von w:en:Module:Color_contrast importiert) |
(fix for encoded # in hex or decimal (screws up assumption that we can split on ;)) |
||
| Zeile 167: | Zeile 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] | ||