"मोड्युल:Color contrast" का संशोधनहरू बिचको अन्तर

Content deleted Content added
add support for hsl
कुनै सम्पादन सारांश छैन
पङ्क्ति ५६:
end
-- whitespace
c = c:match( '^%s*(.-)[%s;]*$' )
 
-- lowercase
पङ्क्ति ६७:
end
-- remove leading # (if there is one) and whitespace
c = mw.ustring.match(c, '^[%s#]*([a-f0-9]*)[%s;]*$')
 
-- convert from hsl
"https://ne.wikipedia.org/wiki/मोड्युल:Color_contrast" बाट अनुप्रेषित