password-validator
Version:
Validates password according to flexible and intuitive specifications
14 lines (13 loc) • 401 B
JavaScript
module.exports = {
error: {
length: 'Length should be a valid positive number',
password: 'Password should be a valid string',
invalidPlugin: 'Plugin should be a valid function',
},
regex: {
digits: '(\\d.*)',
letters: '([a-zA-Z].*)',
symbols: '([`~\\!@#\\$%\\^\\&\\*\\(\\)\\-_\\=\\+\\[\\\{\\}\\]\\\\\|;:\\\'",<.>\\/\\?€£¥₹§±].*)',
spaces: '([\\s].*)'
}
};