Content deleted Content added
return nil if it doesn't match the capture because mw.html is what receives it on the navbar side Tag: Reverted |
add in Tag: Reverted |
||
Line 83:
-- extract color from css
local function extractcolor(str)
-- return nil because navbar takes its argument into mw.html which handles
-- nil gracefully, and it removes the associated style attribute
return mw.ustring.match(';' .. str .. ';', '.*;%s*([Cc][Oo][Ll][Oo][Rr]%s*:%s*.-)%s*;') or nil
end
|