]> git.mxchange.org Git - addressbook-war.git/commitdiff
TODO now to use JSF tag with regex
authorRoland Häder <roland@mxchange.org>
Wed, 19 Apr 2017 23:31:48 +0000 (01:31 +0200)
committerRoland Häder <roland@mxchange.org>
Wed, 19 Apr 2017 23:31:48 +0000 (01:31 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
src/java/org/mxchange/addressbook/validator/emailaddress/AddressbookEmailAddressValidator.java

index b04b53b0bb099460938541f3fc070da49f1128f3..6dddd16b59c05448ffd8bb799cc9ad52d2d1f93a 100644 (file)
@@ -81,7 +81,8 @@ public class AddressbookEmailAddressValidator extends BaseStringValidator implem
                // @TODO Add IDN support (GNU lib?) Search for emailAddressRepeat
                String emailAddress = String.valueOf(value);
 
-               // Checks if the email address matches a regex ("low-level" check, should also be done by <f:validatorRegex />)
+               // Checks if the email address matches a regex ("low-level" check)
+               // @TODO Should also be done by <f:validatorRegex />)
                boolean matches = Pattern.matches("^([a-zA-Z0-9_\\-\\.]+)@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.)|(([a-zA-Z0-9\\-]+\\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\\]?)$", emailAddress); //NOI18N
 
                // Is the email address valid?