From 9863c689d9dab2772bb6ffda97d7376702142394 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Tue, 24 Nov 2009 16:44:29 +0100 Subject: Add more test cases and fix some found issues in link regex. --- libempathy-gtk/empathy-ui-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libempathy-gtk') 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")" -- cgit v1.2.3