From 133576139a87860d2b67ca037d8245d26ab9cbab Mon Sep 17 00:00:00 2001 From: "anton.prokhorov" Date: Fri, 9 Feb 2024 16:38:47 +0000 Subject: [PATCH] Fix lark notification 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, "