aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2009-10-26 18:53:28 +0800
committerXavier Claessens <xclaesse@gmail.com>2009-11-25 01:29:43 +0800
commit954545eee55262449162dd8d0aa10ce6f9c8d036 (patch)
treeed5bafafe2463dc14d8441011fcfe96b10960892
parente4b5562ff59eeab1c5b8d72d72cb5d935cd7d765 (diff)
downloadgsoc2013-empathy-954545eee55262449162dd8d0aa10ce6f9c8d036.tar
gsoc2013-empathy-954545eee55262449162dd8d0aa10ce6f9c8d036.tar.gz
gsoc2013-empathy-954545eee55262449162dd8d0aa10ce6f9c8d036.tar.bz2
gsoc2013-empathy-954545eee55262449162dd8d0aa10ce6f9c8d036.tar.lz
gsoc2013-empathy-954545eee55262449162dd8d0aa10ce6f9c8d036.tar.xz
gsoc2013-empathy-954545eee55262449162dd8d0aa10ce6f9c8d036.tar.zst
gsoc2013-empathy-954545eee55262449162dd8d0aa10ce6f9c8d036.zip
exclude " and ' from links.
-rw-r--r--libempathy-gtk/empathy-ui-utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-ui-utils.c b/libempathy-gtk/empathy-ui-utils.c
index ce5ec419e..97fd95c1d 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")"