fix bug 3893, ' Text mode open/copy web links ignores trailing tilde(s)'
authorPaul <paul@claws-mail.org>
Tue, 10 Oct 2017 08:33:23 +0000 (09:33 +0100)
committerPaul <paul@claws-mail.org>
Tue, 10 Oct 2017 08:33:23 +0000 (09:33 +0100)
src/common/utils.c

index d878392..7edaf23 100644 (file)
@@ -4121,7 +4121,7 @@ gboolean get_uri_part(const gchar *start, const gchar *scanpos,
         * should pass some URI type to this function and decide on that whether
         * to perform punctuation stripping */
 
-#define IS_REAL_PUNCT(ch)      (g_ascii_ispunct(ch) && !strchr("/?=-_)", ch))
+#define IS_REAL_PUNCT(ch)      (g_ascii_ispunct(ch) && !strchr("/?=-_~)", ch))
 
        for (; ep_ - 1 > scanpos + 1 &&
               IS_REAL_PUNCT(*(ep_ - 1));