aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-12-10 18:13:51 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-12-10 18:13:51 +0800
commit9ab8eae5172e12fde05d488c89dcb5dbe06fb0d4 (patch)
tree6eeafa93be69401b82010f9f7065d9df6d8bf09a
parent2daa1a186e12e944e64c2eaceb1bdcffcdeb1eba (diff)
downloadgsoc2013-empathy-9ab8eae5172e12fde05d488c89dcb5dbe06fb0d4.tar
gsoc2013-empathy-9ab8eae5172e12fde05d488c89dcb5dbe06fb0d4.tar.gz
gsoc2013-empathy-9ab8eae5172e12fde05d488c89dcb5dbe06fb0d4.tar.bz2
gsoc2013-empathy-9ab8eae5172e12fde05d488c89dcb5dbe06fb0d4.tar.lz
gsoc2013-empathy-9ab8eae5172e12fde05d488c89dcb5dbe06fb0d4.tar.xz
gsoc2013-empathy-9ab8eae5172e12fde05d488c89dcb5dbe06fb0d4.tar.zst
gsoc2013-empathy-9ab8eae5172e12fde05d488c89dcb5dbe06fb0d4.zip
Clarify URI regex
svn path=/trunk/; revision=1957
-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)