Skip to content

Commit 9b03daf

Browse files
authored
feat(isStrongPassword): add @ as valid symbol (#1566)
1 parent 1b85829 commit 9b03daf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib/isStrongPassword.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import assertString from './util/assertString';
44
const upperCaseRegex = /^[A-Z]$/;
55
const lowerCaseRegex = /^[a-z]$/;
66
const numberRegex = /^[0-9]$/;
7-
const symbolRegex = /^[-#!$%^&*()_+|~=`{}\[\]:";'<>?,.\/ ]$/;
7+
const symbolRegex = /^[-#!$@%^&*()_+|~=`{}\[\]:";'<>?,.\/ ]$/;
88

99
const defaultOptions = {
1010
minLength: 8,

0 commit comments

Comments
 (0)