Repository: validatorjs/validator.js (js)

Issue:
@ is not considered as A Special Character in "isStrongPassword" function
**Description**
**isStrongPassword** function is not considering '@' as a Special Character

**Example**
```
(() => {
    const validator = require('validator');
    console.log(validator.isStrongPassword('Aa1Bb2Cc3!'));
    console.log(validator.isStrongPassword('Aa1Bb2Cc3@'));
    console.log(validator.isStrongPassword('Aa1Bb2Cc3#'));
})()
```

Output --- 
```
true 
false 
true
```


Pull request description:
feat(isStrongPassword): add `@` as valid symbol
adds @ as a valid symbol, also fixes #1563

## Checklist

- [X] PR contains only changes related; no stray files, etc.
- [ ] README updated (where applicable)
- [ ] Tests written (where applicable)


Patch:
diff --git a/src/lib/isMobilePhone.js b/src/lib/isMobilePhone.js
index c34d45d..68a1992 100644
--- a/src/lib/isMobilePhone.js
+++ b/src/lib/isMobilePhone.js
@@ -110,7 +110,7 @@ const phones = {
   'tr-TR': /^(\+?90|0)?5\d{9}$/,
   'uk-UA': /^(\+?38|8)?0\d{9}$/,
   'uz-UZ': /^(\+?998)?(6[125-79]|7[1-69]|88|9\d)\d{7}$/,
-  'vi-VN': /^(\+?84|0)((3([2-9]))|(5([2689]))|(7([0|6-9]))|(8([1-6|89]))|(9([0-9])))([0-9]{7})$/,
+  'vi-VN': /^(\+?84|0)((3([2-9]))|(5([2689]))|(7([0|6-9]))|(8([1-9]))|(9([0-9])))([0-9]{7})$/,
   'zh-CN': /^((\+|00)86)?1([3568][0-9]|4[579]|6[67]|7[01235678]|9[012356789])[0-9]{8}$/,
   'zh-TW': /^(\+?886\-?|0)?9\d{8}$/,
 };
diff --git a/src/lib/isStrongPassword.js b/src/lib/isStrongPassword.js
index 7433703..e18a759 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,


Test patch:
diff --git a/test/validators.js b/test/validators.js
index baeca63..b9899b6 100644
--- a/test/validators.js
+++ b/test/validators.js
@@ -6391,6 +6391,7 @@ describe('Validators', () => {
           '0883805866',
           '0892405867',
           '+84888696413',
+          '0878123456',
         ],
         invalid: [
           '12345',