Browse Source
Update npm/ng-packs/packages/theme-shared/src/lib/utils/validation-utils.ts
Co-authored-by: Qingxiao Ren <rqx110@163.com>
pull/13154/head^2
Mahmut Gundogdu
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
npm/ng-packs/packages/theme-shared/src/lib/utils/validation-utils.ts
|
|
|
@ -65,7 +65,7 @@ function validatePassword(shouldContain: 'small' | 'capital' | 'number' | 'speci |
|
|
|
}; |
|
|
|
const regex = regexMap[shouldContain]; |
|
|
|
|
|
|
|
const hasError = regex[shouldContain].test(value); |
|
|
|
const hasError = regex.test(value); |
|
|
|
|
|
|
|
if (!hasError) { |
|
|
|
return null; |
|
|
|
|