From 4990f70bceacdb75e646496873106ff004d5d903 Mon Sep 17 00:00:00 2001 From: "Kay Marquardt (Gnadelwartz)" Date: Mon, 15 Jun 2020 14:16:14 +0200 Subject: [PATCH] escape tab in JSON send to telegram --- bashbot.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bashbot.sh b/bashbot.sh index 3de69e7..1092e5a 100755 --- a/bashbot.sh +++ b/bashbot.sh @@ -11,7 +11,7 @@ # This file is public domain in the USA and all free countries. # Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying) # -#### $$VERSION$$ v0.98-dev-21-g24a7eaa +#### $$VERSION$$ v0.98-dev-23-g6439d43 # # Exit Codes: # - 0 sucess (hopefully) @@ -456,7 +456,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