From: Roland Häder Date: Wed, 19 Apr 2017 23:31:48 +0000 (+0200) Subject: TODO now to use JSF tag with regex X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c164e0eadbc57d9f8217b94d976946e75d2ba1fb;p=addressbook-war.git TODO now to use JSF tag with regex Signed-off-by: Roland Häder --- diff --git a/src/java/org/mxchange/addressbook/validator/emailaddress/AddressbookEmailAddressValidator.java b/src/java/org/mxchange/addressbook/validator/emailaddress/AddressbookEmailAddressValidator.java index b04b53b0..6dddd16b 100644 --- a/src/java/org/mxchange/addressbook/validator/emailaddress/AddressbookEmailAddressValidator.java +++ b/src/java/org/mxchange/addressbook/validator/emailaddress/AddressbookEmailAddressValidator.java @@ -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 ) + // Checks if the email address matches a regex ("low-level" check) + // @TODO Should also be done by ) 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?