Changes
Jump to navigation
Jump to search
use pipes as separators instead of hyphens for the protection category keys and validate reasons when we create the protection object to make sure they don't contain pipes
if args[1] then
self.reason = mw.ustring.lower(args[1])
if self.reason:find('|') then
error('reasons cannot contain the pipe character ("|")', 0)
end
end
end
end
key = table.concat(key, '-|')
local attempt = cats[key]
if attempt then