[empathy] Accept any foo:// URL Schemes



commit 7731e5f2031462707a4e774d6ebe38d32641a6e5
Author: Xavier Claessens <xclaesse gmail com>
Date:   Tue Nov 24 11:41:05 2009 +0100

    Accept any foo:// URL Schemes

 libempathy-gtk/empathy-ui-utils.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/libempathy-gtk/empathy-ui-utils.c b/libempathy-gtk/empathy-ui-utils.c
index 289874e..1a27f0d 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")"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]