Module:ColorParse: Difference between revisions
Jump to navigation
Jump to search
(if no color at the start detected, append &y or &y) |
mNo edit summary |
||
Line 8: | Line 8: | ||
function normalize(input, type) | function normalize(input, type) | ||
type = type or 'xml' | type = type or 'xml' | ||
local a = '&y' | local a = '&y' | ||
if type == 'notxml' then | |||
a = '&y' | |||
end | |||
local b = input:gsub("(~J211)", "") | local b = input:gsub("(~J211)", "") | ||
if not b:match('^%&') then | if not b:match('^%&') then |