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:
parent
596d30389f
commit
7813ff93ac
@ -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)}*
|
||||||
|
Loading…
Reference in New Issue
Block a user