Module:Color contrast: Difference between revisions
Content added Content deleted
(html #) |
|||
Line 98: | Line 98: | ||
-- remove leading # (if there is one) and whitespace |
-- 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]*$') |
||
c = mw.ustring.match(c, '^[%s]*#([a-f0-9]*)[%s]*$') |
|||
-- split into rgb |
-- split into rgb |