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

View File

@ -445,7 +445,7 @@ sendJsonResult(){
# $1 string # $1 string
# output escaped string # output escaped string
JsonEscape(){ JsonEscape(){
sed 's/\([-"`´,§$%&/(){}#@!?*.]\)/\\\1/g' <<< "$1" sed 's/\([-"`´,§$%&/(){}#@!?*.\t]\)/\\\1/g' <<< "$1"
} }
# convert common telegram entities to JSON # convert common telegram entities to JSON