]> git.0d.be Git - empathy.git/commitdiff
\n is also a delimiter for URLs.
authorXavier Claessens <xclaesse@src.gnome.org>
Thu, 29 Jan 2009 10:27:47 +0000 (10:27 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Thu, 29 Jan 2009 10:27:47 +0000 (10:27 +0000)
svn path=/trunk/; revision=2260

libempathy-gtk/empathy-chat-text-view.c

index afd158f571d66ce2f07645df01d7c2d4d738ed3f..87e3a0950dfe81c425744773f1c199ec8287b634 100644 (file)
@@ -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")"