diff options
author | Xavier Claessens <xclaesse@gmail.com> | 2009-10-26 18:53:28 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2009-11-25 01:29:43 +0800 |
commit | 954545eee55262449162dd8d0aa10ce6f9c8d036 (patch) | |
tree | ed5bafafe2463dc14d8441011fcfe96b10960892 /libempathy-gtk/empathy-ui-utils.c | |
parent | e4b5562ff59eeab1c5b8d72d72cb5d935cd7d765 (diff) | |
download | gsoc2013-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.
Diffstat (limited to 'libempathy-gtk/empathy-ui-utils.c')
-rw-r--r-- | libempathy-gtk/empathy-ui-utils.c | 4 |
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")" |