From 9ab8eae5172e12fde05d488c89dcb5dbe06fb0d4 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Wed, 10 Dec 2008 10:13:51 +0000 Subject: Clarify URI regex svn path=/trunk/; revision=1957 --- 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 429e3cfbe..eb84f08a9 100644 --- a/libempathy-gtk/empathy-theme.c +++ b/libempathy-gtk/empathy-theme.c @@ -36,11 +36,11 @@ #define SCHEMES "(https?|ftps?|nntp|news|javascript|about|ghelp|apt|telnet|"\ "file|webcal|mailto)" -#define SEPARATOR "([^,;\?><()\\ \"\\.])" #define BODY "([^\\ ]+)" -#define URI_REGEX "("SCHEMES"://"BODY SEPARATOR")" \ - "|((mailto:)?"BODY"@"BODY"\\."BODY SEPARATOR")"\ - "|((www|ftp)\\."BODY SEPARATOR")" +#define END_BODY "([^\\ ]*[^,;\?><()\\ \"\\.])" +#define URI_REGEX "("SCHEMES"://"END_BODY")" \ + "|((mailto:)?"BODY"@"BODY"\\."END_BODY")"\ + "|((www|ftp)\\."END_BODY")" static GRegex *uri_regex = NULL; #define GET_PRIV(obj) EMPATHY_GET_PRIV (obj, EmpathyTheme) -- cgit v1.2.3