Skip to content

Commit

Permalink
Replace all '-' for monitor name.
Browse files Browse the repository at this point in the history
Signed-off-by: corvofeng <[email protected]>
  • Loading branch information
corvofeng authored and eidam committed Feb 15, 2022
1 parent 596d303 commit 7813ff9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/functions/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)}*
Expand Down

0 comments on commit 7813ff9

Please sign in to comment.