From 7813ff93ac094d11447cbf78ec7d39c88d03e99e 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)}*