aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2009-01-29 18:27:47 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-01-29 18:27:47 +0800
commit18db98e8aaccfe4a5f65a6c8cf5b7b6a42ef3cfb (patch)
tree9597a02897a55d54c574a16817220a01871bfa32
parent701af4afe6295097dac8e367a0288fcda1eec68e (diff)
downloadgsoc2013-empathy-18db98e8aaccfe4a5f65a6c8cf5b7b6a42ef3cfb.tar
gsoc2013-empathy-18db98e8aaccfe4a5f65a6c8cf5b7b6a42ef3cfb.tar.gz
gsoc2013-empathy-18db98e8aaccfe4a5f65a6c8cf5b7b6a42ef3cfb.tar.bz2
gsoc2013-empathy-18db98e8aaccfe4a5f65a6c8cf5b7b6a42ef3cfb.tar.lz
gsoc2013-empathy-18db98e8aaccfe4a5f65a6c8cf5b7b6a42ef3cfb.tar.xz
gsoc2013-empathy-18db98e8aaccfe4a5f65a6c8cf5b7b6a42ef3cfb.tar.zst
gsoc2013-empathy-18db98e8aaccfe4a5f65a6c8cf5b7b6a42ef3cfb.zip
\n is also a delimiter for URLs.
svn path=/trunk/; revision=2260
-rw-r--r--libempathy-gtk/empathy-chat-text-view.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-chat-text-view.c b/libempathy-gtk/empathy-chat-text-view.c
index afd158f57..87e3a0950 100644
--- a/libempathy-gtk/empathy-chat-text-view.c
+++ b/libempathy-gtk/empathy-chat-text-view.c
@@ -64,8 +64,8 @@
#define SCHEMES "(https?|ftps?|nntp|news|javascript|about|ghelp|apt|telnet|"\
"file|webcal|mailto)"
-#define BODY "([^\\ ]+)"
-#define END_BODY "([^\\ ]*[^,;\?><()\\ \"\\.])"
+#define BODY "([^\\ \\n]+)"
+#define END_BODY "([^\\ \\n]*[^,;\?><()\\ \"\\.\\n])"
#define URI_REGEX "("SCHEMES"://"END_BODY")" \
"|((mailto:)?"BODY"@"BODY"\\."END_BODY")"\
"|((www|ftp)\\."END_BODY")"