ngx-mask
ngx-mask copied to clipboard
Asterisk in masks prevents the validation
I tried to implement an email mask with this pattern: A*@A*.SSS
When you start typing any character in the field, the validation accepts immediately the value, even if you do not write a @ character or a dot.
The validation should fail as long as no @ or no dot is in the text, or the dot is not followed by 3 characters
Just so you are aware A*@A*.SSS does not cover all possible emails. It's not even close. Something simple like [email protected] or even the common gmail [email protected].
List of Valid Email Addresses
[email protected] [email protected] [email protected] [email protected] [email protected] email@[123.123.123.123] "email"@example.com [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected]
List of Strange Valid Email Addresses
much.”more\ unusual”@example.com very.unusual.”@”[email protected] very.”(),:;<>[]”.VERY.”very@\ "very”[email protected]
any updates? @Thegrep01 @NepipenkoIgor
@jonaskistler @mikaelboff @logic01 Thanks for your using Ngx-Mask. Please update to latest version. It example, all work as expected - https://stackblitz.com/edit/angular-wnctvj?file=src%2Fmain.ts