From 834f5ba2002b9d20d1746776f1a0773760e1ff7b Mon Sep 17 00:00:00 2001 From: "Kay Marquardt (Gnadelwartz)" Date: Mon, 15 Jun 2020 14:14:34 +0200 Subject: [PATCH] escape tab in JSON send to telegram --- bashbot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bashbot.sh b/bashbot.sh index f94a415..6fb34cd 100755 --- a/bashbot.sh +++ b/bashbot.sh @@ -445,7 +445,7 @@ sendJsonResult(){ # $1 string # output escaped string JsonEscape(){ - sed 's/\([-"`´,§$%&/(){}#@!?*.]\)/\\\1/g' <<< "$1" + sed 's/\([-"`´,§$%&/(){}#@!?*.\t]\)/\\\1/g' <<< "$1" } # convert common telegram entities to JSON