empathy r2260 - trunk/libempathy-gtk
- From: xclaesse svn gnome org
- To: svn-commits-list gnome org
- Subject: empathy r2260 - trunk/libempathy-gtk
- Date: Thu, 29 Jan 2009 10:27:47 +0000 (UTC)
Author: xclaesse
Date: Thu Jan 29 10:27:47 2009
New Revision: 2260
URL: http://svn.gnome.org/viewvc/empathy?rev=2260&view=rev
Log:
\n is also a delimiter for URLs.
Modified:
trunk/libempathy-gtk/empathy-chat-text-view.c
Modified: trunk/libempathy-gtk/empathy-chat-text-view.c
==============================================================================
--- trunk/libempathy-gtk/empathy-chat-text-view.c (original)
+++ trunk/libempathy-gtk/empathy-chat-text-view.c Thu Jan 29 10:27:47 2009
@@ -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")"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]