aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2009-11-24 18:41:05 +0800
committerXavier Claessens <xclaesse@gmail.com>2009-11-25 01:29:44 +0800
commit7731e5f2031462707a4e774d6ebe38d32641a6e5 (patch)
treef3f701eefea56aa0e8c44d30c6de36d57f581645 /libempathy-gtk
parent212ea18a107e8ddfda82b3b754a1df2b7db9735f (diff)
downloadgsoc2013-empathy-7731e5f2031462707a4e774d6ebe38d32641a6e5.tar
gsoc2013-empathy-7731e5f2031462707a4e774d6ebe38d32641a6e5.tar.gz
gsoc2013-empathy-7731e5f2031462707a4e774d6ebe38d32641a6e5.tar.bz2
gsoc2013-empathy-7731e5f2031462707a4e774d6ebe38d32641a6e5.tar.lz
gsoc2013-empathy-7731e5f2031462707a4e774d6ebe38d32641a6e5.tar.xz
gsoc2013-empathy-7731e5f2031462707a4e774d6ebe38d32641a6e5.tar.zst
gsoc2013-empathy-7731e5f2031462707a4e774d6ebe38d32641a6e5.zip
Accept any foo:// URL Schemes
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-ui-utils.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libempathy-gtk/empathy-ui-utils.c b/libempathy-gtk/empathy-ui-utils.c
index 289874eb7..1a27f0d55 100644
--- a/libempathy-gtk/empathy-ui-utils.c
+++ b/libempathy-gtk/empathy-ui-utils.c
@@ -49,10 +49,10 @@
#include <libempathy/empathy-idle.h>
#include <libempathy/empathy-ft-factory.h>
-#define SCHEMES "(https?|s?ftps?|nntp|news|javascript|about|ghelp|apt|telnet|"\
- "file|webcal|mailto)"
-#define BODY "([^\\ \\n\'\"]+)"
-#define END_BODY "([^\\ \\n\'\"]*[^,;\?><()\\ \'\"\\.\\n])"
+#define SCHEMES "([a-zA-Z\\+]+)"
+#define BODY_CHAR "[^\\ \\n\"\']"
+#define BODY "("BODY_CHAR"+)"
+#define END_BODY "("BODY_CHAR"*[^,;\?><()\\ \"\'\\.\\n])"
#define URI_REGEX "("SCHEMES"://"END_BODY")" \
"|((mailto:)?"BODY"@"BODY"\\."END_BODY")"\
"|((www|ftp)\\."END_BODY")"