Skip to content

Commit ee81073

Browse files
authored
fix(isStrongPassword): add £ as symbol (#2148)
1 parent 41c7a16 commit ee81073

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

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,

test/validators.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12475,6 +12475,7 @@ describe('Validators', () => {
1247512475
'mxH_+2vs&54_+H3P',
1247612476
'+&DxJ=X7-4L8jRCD',
1247712477
'etV*p%Nr6w&H%FeF',
12478+
'£3.ndSau_7',
1247812479
],
1247912480
invalid: [
1248012481
'',

0 commit comments

Comments
 (0)