aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-theme.c
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy-gtk/empathy-theme.c')
-rw-r--r--libempathy-gtk/empathy-theme.c8
1 files changed, 4 insertions, 4 deletions
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)