Module:Ugly hacks

local p = {}

local getArgs = require('Dev:Arguments').getArgs

- -- function: is_valid_page_name(frame) -- -- - function p.is_valid_page_name(frame) local page = getArgs(frame)[1] if #page < 255 and #page > 0 and not page:match('[{}%[%]<>|#\1-\31%%]') and not page:match('+') and not page:match('%/$') then return 1 else return '' end end

return p