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 3 years ago committed by GitHub
parent 287d18e046
commit da0fe2246a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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;

Loading…
Cancel
Save