diff options
author | 2018-01-18 16:36:45 +0300 | |
---|---|---|
committer | 2018-01-18 16:36:45 +0300 | |
commit | 17c97aebd6e726eb574384576e9864b97810b22b (patch) | |
tree | d8622712744220647c433574151fd36586173b45 /juick-core/src/main/java/com/juick/util/MessageUtils.java | |
parent | 51af5b371c55bb0a49e0c9a4ac54e4dff90002d2 (diff) |
tg: escape reply quote too, no need to escape links
Diffstat (limited to 'juick-core/src/main/java/com/juick/util/MessageUtils.java')
-rw-r--r-- | juick-core/src/main/java/com/juick/util/MessageUtils.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/juick-core/src/main/java/com/juick/util/MessageUtils.java b/juick-core/src/main/java/com/juick/util/MessageUtils.java index fa0072b2..97d55b09 100644 --- a/juick-core/src/main/java/com/juick/util/MessageUtils.java +++ b/juick-core/src/main/java/com/juick/util/MessageUtils.java @@ -195,8 +195,6 @@ public class MessageUtils { } public static String escapeMarkdown(final String s) { return s.replace("_", "\\_").replace("*", "\\*") - .replace("~", "\\~").replace("[", "\\[") - .replace("]", "\\]").replace("(", "\\(") - .replace(")", "\\)").replace("`", "\\`"); + .replace("`", "\\`"); } } |