Skip to content

Commit

Permalink
feat(isStrongPassword): add @ as valid symbol (#1566)
Browse files Browse the repository at this point in the history
  • Loading branch information
stingalleman committed Feb 15, 2021
1 parent 1b85829 commit 9b03daf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/isStrongPassword.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import assertString from './util/assertString';
const upperCaseRegex = /^[A-Z]$/;
const lowerCaseRegex = /^[a-z]$/;
const numberRegex = /^[0-9]$/;
const symbolRegex = /^[-#!$%^&*()_+|~=`{}\[\]:";'<>?,.\/ ]$/;
const symbolRegex = /^[-#!$@%^&*()_+|~=`{}\[\]:";'<>?,.\/ ]$/;

const defaultOptions = {
minLength: 8,
Expand Down

0 comments on commit 9b03daf

Please sign in to comment.