[empathy] exclude " and ' from links.
- From: Xavier Claessens <xclaesse src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy] exclude " and ' from links.
- Date: Thu, 26 Nov 2009 09:19:32 +0000 (UTC)
commit 954545eee55262449162dd8d0aa10ce6f9c8d036
Author: Xavier Claessens <xclaesse gmail com>
Date: Mon Oct 26 11:53:28 2009 +0100
exclude " and ' from links.
libempathy-gtk/empathy-ui-utils.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libempathy-gtk/empathy-ui-utils.c b/libempathy-gtk/empathy-ui-utils.c
index ce5ec41..97fd95c 100644
--- a/libempathy-gtk/empathy-ui-utils.c
+++ b/libempathy-gtk/empathy-ui-utils.c
@@ -51,8 +51,8 @@
#define SCHEMES "(https?|s?ftps?|nntp|news|javascript|about|ghelp|apt|telnet|"\
"file|webcal|mailto)"
-#define BODY "([^\\ \\n\"]+)"
-#define END_BODY "([^\\ \\n\"]*[^,;\?><()\\ \"\\.\\n])"
+#define BODY "([^\\ \\n\'\"]+)"
+#define END_BODY "([^\\ \\n\'\"]*[^,;\?><()\\ \'\"\\.\\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]