aboutsummaryrefslogtreecommitdiff
path: root/src/user-list.vala
diff options
context:
space:
mode:
Diffstat (limited to 'src/user-list.vala')
-rw-r--r--src/user-list.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/user-list.vala b/src/user-list.vala
index 86b71d2..7ebc41b 100644
--- a/src/user-list.vala
+++ b/src/user-list.vala
@@ -421,7 +421,7 @@ public class UserList : GreeterList
/* Check email address is valid
* Using the html5 definition of a valid e-mail address
* http://www.w3.org/TR/html5/states-of-the-type-attribute.html#valid-e-mail-address */
- var re = new Regex ("[a-zA-Z0-9.!#$%&'\\*\\+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\\.[a-zA-Z0-9-]+)*");
+ var re = new Regex ("[a-zA-Z0-9.!#$%&'\\*\\+/=?^_`{|}~-]+(|@[a-zA-Z0-9-]+(?:\\.[a-zA-Z0-9-]+)*)");
MatchInfo info;
email_valid = re.match_all (email, 0, out info);
email_valid = email_valid && info.get_match_count () > 0 && info.fetch (0) == email;