From e6e54d712abb2198eb08f7f4407c68c5262f21ee Mon Sep 17 00:00:00 2001 From: Anton Prokhorov Date: Fri, 9 Feb 2024 16:46:48 +0000 Subject: [PATCH] Fix lark notifications not being sent (#161) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Lark still tries to parse "" tags inside of code block. I replace "<" with unicode character "<" to fix this --- internal/modules/lark/notifier.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/modules/lark/notifier.go b/internal/modules/lark/notifier.go index 9c16712..0597d6c 100644 --- a/internal/modules/lark/notifier.go +++ b/internal/modules/lark/notifier.go @@ -22,9 +22,11 @@ func (lrk *Lark) Notify(n *modules.Notification) error { } for _, m := range emailRegexp.FindAllString(body, -1) { - body = strings.ReplaceAll(body, m, strings.Replace(m, "@", "(AT)", 1)) + body = strings.ReplaceAll(body, m, strings.Replace(m, "@", "@", 1)) } + body = strings.ReplaceAll(body, "