aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 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)