Standardization of regex format
This commit is contained in:
parent
a10220642e
commit
a4ff2aaaa6
@ -22,11 +22,11 @@ const VERSION = '0.9';
|
||||
|
||||
// Regex
|
||||
const POLL_REGEX = '/^[a-z0-9-]*$/i';
|
||||
const ADMIN_POLL_REGEX = '/^[\w\d]{24}$/i';
|
||||
const ADMIN_POLL_REGEX = '/^[a-z0-9]{24}$/i';
|
||||
const CHOICE_REGEX = '/^[012]$/';
|
||||
const BOOLEAN_REGEX = '/^(on|off|true|false|1|0)$/i';
|
||||
const BOOLEAN_TRUE_REGEX = '/^(on|true|1)$/i';
|
||||
const EDITABLE_CHOICE_REGEX = '/^[0-2]$/';
|
||||
|
||||
// CSRF (300s = 5min)
|
||||
const TOKEN_TIME = 300;
|
||||
const TOKEN_TIME = 300;
|
Loading…
Reference in New Issue
Block a user