diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2009-01-29 18:27:47 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2009-01-29 18:27:47 +0800 |
commit | 18db98e8aaccfe4a5f65a6c8cf5b7b6a42ef3cfb (patch) | |
tree | 9597a02897a55d54c574a16817220a01871bfa32 /libempathy-gtk/empathy-chat-text-view.c | |
parent | 701af4afe6295097dac8e367a0288fcda1eec68e (diff) | |
download | gsoc2013-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
Diffstat (limited to 'libempathy-gtk/empathy-chat-text-view.c')
-rw-r--r-- | libempathy-gtk/empathy-chat-text-view.c | 4 |
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")" |