From 2daa1a186e12e944e64c2eaceb1bdcffcdeb1eba Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Tue, 9 Dec 2008 16:19:44 +0000 Subject: Improve URI regex. svn path=/trunk/; revision=1956 --- libempathy-gtk/empathy-theme.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libempathy-gtk') diff --git a/libempathy-gtk/empathy-theme.c b/libempathy-gtk/empathy-theme.c index fdff379ee..429e3cfbe 100644 --- a/libempathy-gtk/empathy-theme.c +++ b/libempathy-gtk/empathy-theme.c @@ -35,12 +35,12 @@ #define TIMESTAMP_INTERVAL 300 #define SCHEMES "(https?|ftps?|nntp|news|javascript|about|ghelp|apt|telnet|"\ - "file|webcal|mailto)" -#define SEPARATOR "([^,;\?><()\\ ])" -#define BODY "([^\\ ]*(\\\\ )?)+" + "file|webcal|mailto)" +#define SEPARATOR "([^,;\?><()\\ \"\\.])" +#define BODY "([^\\ ]+)" #define URI_REGEX "("SCHEMES"://"BODY SEPARATOR")" \ "|((mailto:)?"BODY"@"BODY"\\."BODY SEPARATOR")"\ - "|((www|ftp)."BODY SEPARATOR")" + "|((www|ftp)\\."BODY SEPARATOR")" static GRegex *uri_regex = NULL; #define GET_PRIV(obj) EMPATHY_GET_PRIV (obj, EmpathyTheme) -- cgit v1.2.3