From 8d4e0a1bc6f32eb2e1837c997ae47c08fb97221d Mon Sep 17 00:00:00 2001 From: Michael De Roover Date: Wed, 6 Jan 2021 19:41:18 +0100 Subject: [PATCH] Update sed command to support MarkdownV2 properly --- konata.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/konata.sh b/konata.sh index ffdeb37..8470a17 100755 --- a/konata.sh +++ b/konata.sh @@ -25,7 +25,7 @@ fi # Functions for outgoing messages sendmsg(){ # Escape any special characters first, see https://0x0.st/NO7J. - fmt=$(sed 's/[][~!@#$%^&*()-_=+{}\|;:",<.>/?'"'"']/\\&/g' <<< $1 | sed 's/\t//g') + fmt=$(sed 's/[>#+-=|{}.!]/\\&/g' <<< $1 | sed 's/\t//g') sendraw "$fmt" } sendraw(){