Replace all '-' for monitor name.

Signed-off-by: corvofeng <corvofeng@gmail.com>
This commit is contained in:
corvofeng 2022-01-13 00:05:42 +08:00 committed by Adam Janiš
parent 596d30389f
commit 7813ff93ac
1 changed files with 1 additions and 1 deletions

View File

@ -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)}*