From 015167fb0beb6a2893e6524129b22ec133210ad5 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Tue, 9 Dec 2008 16:19:38 +0000 Subject: Match literal dot rather than any char in email domain This fixes half of #563713: previously, "foo@bar baz" was matched as an email address. svn path=/trunk/; revision=1954 --- libempathy-gtk/empathy-theme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libempathy-gtk/empathy-theme.c b/libempathy-gtk/empathy-theme.c index d68b72f02..1e0e9895d 100644 --- a/libempathy-gtk/empathy-theme.c +++ b/libempathy-gtk/empathy-theme.c @@ -39,7 +39,7 @@ #define SEPARATOR "([^,;\?><()\\ ])" #define BODY "([^\\ ]*(\\\\ )?)+" #define URI_REGEX "("SHEMES"://"BODY SEPARATOR")" \ - "|((mailto:)?"BODY"@"BODY"."BODY SEPARATOR")"\ + "|((mailto:)?"BODY"@"BODY"\\."BODY SEPARATOR")"\ "|((www|ftp)."BODY SEPARATOR")" static GRegex *uri_regex = NULL; -- cgit v1.2.3