diff options
author | xclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4> | 2008-12-10 00:19:44 +0800 |
---|---|---|
committer | xclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4> | 2008-12-10 00:19:44 +0800 |
commit | 2dc2aab05835228ffdb3afeb3ee8e0534e94f9c9 (patch) | |
tree | 0107bd241a687d69093e6842f47981e06282d634 | |
parent | 496bfd32f90cd6c075caa82cb301d1cb82303133 (diff) | |
download | gsoc2013-empathy-2dc2aab05835228ffdb3afeb3ee8e0534e94f9c9.tar gsoc2013-empathy-2dc2aab05835228ffdb3afeb3ee8e0534e94f9c9.tar.gz gsoc2013-empathy-2dc2aab05835228ffdb3afeb3ee8e0534e94f9c9.tar.bz2 gsoc2013-empathy-2dc2aab05835228ffdb3afeb3ee8e0534e94f9c9.tar.lz gsoc2013-empathy-2dc2aab05835228ffdb3afeb3ee8e0534e94f9c9.tar.xz gsoc2013-empathy-2dc2aab05835228ffdb3afeb3ee8e0534e94f9c9.tar.zst gsoc2013-empathy-2dc2aab05835228ffdb3afeb3ee8e0534e94f9c9.zip |
Improve URI regex.
git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@1956 4ee84921-47dd-4033-b63a-18d7a039a3e4
-rw-r--r-- | libempathy-gtk/empathy-theme.c | 8 |
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) |