Primeng: InputMask - Email -> TLD limited to 3 characters

Created on 7 Jul 2016  路  2Comments  路  Source: primefaces/primeng

when using InputMask for Email Input, it is only possible to use TLD with 3 or less characters (e.g. .com or .org)
It isn't possible to enter a valid email adress with TLDs like .info /.systems

All 2 comments

Oh, i saw that it is possibile to conf how long the TLD in email-mask could be:

<p-inputMask mask="*{1,20}@*{1,20}.*{1,3}" placeholder="Email"></p-inputMask>

e.g. change .*{1,3} to .*{1,4} for TLD like .info (or even more for longer TLDs

Is this still valid? I'm not seeing anything in the documentation that indicates we can use a variable number of characters. It's not working in my app either.

Was this page helpful?
0 / 5 - 0 ratings