1
0
mirror of https://github.com/tormachris/cf-workers-status-page.git synced 2024-11-23 22:45:43 +01:00

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

View File

@ -64,7 +64,7 @@ export async function notifySlack(monitor, operational) {
} }
export async function notifyTelegram(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)}* )}* changed status to *${getOperationalLabel(operational)}*