From 3e28ccba417b30fd49ba43adf95f49ce6394ca33 Mon Sep 17 00:00:00 2001 From: Sam <31985409+sandmule@users.noreply.github.com> Date: Mon, 16 Jan 2023 15:05:07 +0000 Subject: [PATCH 1/2] =?UTF-8?q?Add=20=C2=A3=20to=20symbolRegex?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/isStrongPassword.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/isStrongPassword.js b/src/lib/isStrongPassword.js index 28bb0637f..5db901fa3 100644 --- a/src/lib/isStrongPassword.js +++ b/src/lib/isStrongPassword.js @@ -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, From 8259bba57678bb0b78af43d920289d0c18467ddf Mon Sep 17 00:00:00 2001 From: Sam <31985409+sandmule@users.noreply.github.com> Date: Mon, 16 Jan 2023 15:51:30 +0000 Subject: [PATCH 2/2] Update test --- test/validators.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/validators.js b/test/validators.js index c0e36bec7..03efe968e 100644 --- a/test/validators.js +++ b/test/validators.js @@ -12425,6 +12425,7 @@ describe('Validators', () => { 'mxH_+2vs&54_+H3P', '+&DxJ=X7-4L8jRCD', 'etV*p%Nr6w&H%FeF', + '£3.ndSau_7', ], invalid: [ '',