From daa850becb6af53c5fa8efb85b5db255164699f4 Mon Sep 17 00:00:00 2001 From: corvofeng Date: Thu, 13 Jan 2022 00:05:42 +0800 Subject: [PATCH] Replace all '-' for monitor name. Signed-off-by: corvofeng --- src/functions/helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/functions/helpers.js b/src/functions/helpers.js index 080ad2b8b..95d556135 100644 --- a/src/functions/helpers.js +++ b/src/functions/helpers.js @@ -64,7 +64,7 @@ export async function notifySlack(monitor, operational) { } export async function notifyTelegram(monitor, operational) { - const text = `Monitor *${monitor.name.replace( + const text = `Monitor *${monitor.name.replaceAll( '-', '\\-', )}* changed status to *${getOperationalLabel(operational)}*