Skip to content

Commit

Permalink
fix(ref: no-ref): fix issues
Browse files Browse the repository at this point in the history
  • Loading branch information
andriikamaldinov1 committed Nov 5, 2024
1 parent b5acefd commit 9dd163e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions projects/ngx-mask-lib/src/lib/ngx-mask.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 9dd163e

Please sign in to comment.