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) {
|
||||
const text = `Monitor *${monitor.name.replace(
|
||||
const text = `Monitor *${monitor.name.replaceAll(
|
||||
'-',
|
||||
'\\-',
|
||||
)}* changed status to *${getOperationalLabel(operational)}*
|
||||
|
|
Loading…
Reference in New Issue