From 9dd163e273768e0b602120c09417408c3d13b124 Mon Sep 17 00:00:00 2001 From: andriikamaldinov1 Date: Tue, 5 Nov 2024 18:08:33 +0200 Subject: [PATCH] fix(ref: no-ref): fix issues --- projects/ngx-mask-lib/src/lib/ngx-mask.directive.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/projects/ngx-mask-lib/src/lib/ngx-mask.directive.ts b/projects/ngx-mask-lib/src/lib/ngx-mask.directive.ts index 0c33295f..4ab0e2a0 100644 --- a/projects/ngx-mask-lib/src/lib/ngx-mask.directive.ts +++ b/projects/ngx-mask-lib/src/lib/ngx-mask.directive.ts @@ -282,6 +282,7 @@ export class NgxMaskDirective implements ControlValueAccessor, OnChanges, Valida } if (this._maskValue === MaskExpression.EMAIL_MASK) { const emailPattern = /^[^@]+@[^@]+\.[^@]+$/; + if (!emailPattern.test(processedValue) && processedValue) { return this._createValidationError(processedValue); } else {