Module:Color contrast: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
m
local
(fix for encoded # in hex or decimal (screws up assumption that we can split on ;))
m (local)
Line 169:
local slist = mw.text.split(mw.ustring.gsub(mw.ustring.gsub(style or '', '&#[Xx]23;', '#'), '#', '#'), ';')
for k = 1,#slist do
local s = slist[k]
local k,v = s:match( '^[%s]*([^:]-):([^:]-)[%s;]*$' )
k = k or ''
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu