Module:Color contrast: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Undid revision 757931345 by Frietjes (talk)
(html #)
(Undid revision 757931345 by Frietjes (talk))
Line 98:
-- remove leading # (if there is one) and whitespace
c = mw.ustring.match(c, '^[%s#]*([a-f0-9]*)[%s]*$')
c = mw.ustring.match(c, '^[%s]*#([a-f0-9]*)[%s]*$')
 
-- split into rgb
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu