aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-ui-utils.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2009-11-24 23:44:29 +0800
committerXavier Claessens <xclaesse@gmail.com>2009-11-25 01:29:45 +0800
commit9863c689d9dab2772bb6ffda97d7376702142394 (patch)
treef1a2bee2581bb7c083dbe24a2989776a175cd599 /libempathy-gtk/empathy-ui-utils.c
parent9c1e21c7ad3ba913ebf144b498aa2de6d22a7797 (diff)
downloadgsoc2013-empathy-9863c689d9dab2772bb6ffda97d7376702142394.tar
gsoc2013-empathy-9863c689d9dab2772bb6ffda97d7376702142394.tar.gz
gsoc2013-empathy-9863c689d9dab2772bb6ffda97d7376702142394.tar.bz2
gsoc2013-empathy-9863c689d9dab2772bb6ffda97d7376702142394.tar.lz
gsoc2013-empathy-9863c689d9dab2772bb6ffda97d7376702142394.tar.xz
gsoc2013-empathy-9863c689d9dab2772bb6ffda97d7376702142394.tar.zst
gsoc2013-empathy-9863c689d9dab2772bb6ffda97d7376702142394.zip
Add more test cases and fix some found issues in link regex.
Diffstat (limited to 'libempathy-gtk/empathy-ui-utils.c')
-rw-r--r--libempathy-gtk/empathy-ui-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-ui-utils.c b/libempathy-gtk/empathy-ui-utils.c
index a72a06b9d..f57468628 100644
--- a/libempathy-gtk/empathy-ui-utils.c
+++ b/libempathy-gtk/empathy-ui-utils.c
@@ -53,7 +53,7 @@
#define SCHEMES "([a-zA-Z\\+]+)"
#define BODY_CHAR "[^\\ \\n\"\']"
#define BODY "("BODY_CHAR"+)"
-#define END_BODY "("BODY_CHAR"*[^,;\?><()\\ \"\'\\.\\n])"
+#define END_BODY "("BODY_CHAR"*[^,;\\:\?><(){}\\[\\]\\ \"\'\\.\\n])"
#define URI_REGEX "("SCHEMES"://"END_BODY")" \
"|((mailto:)?"BODY"@"BODY"\\."END_BODY")"\
"|((www|ftp)\\."END_BODY")"