escape tab in JSON send to telegram

This commit is contained in:
Kay Marquardt (Gnadelwartz) 2020-06-15 14:14:34 +02:00
parent 2397f0d0b4
commit 834f5ba200
1 changed files with 1 additions and 1 deletions

View File

@ -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