Skip to content

Commit 7813ff9

Browse files
corvofengeidam
authored andcommitted
Replace all '-' for monitor name.
Signed-off-by: corvofeng <[email protected]>
1 parent 596d303 commit 7813ff9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/functions/helpers.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export async function notifySlack(monitor, operational) {
6464
}
6565

6666
export async function notifyTelegram(monitor, operational) {
67-
const text = `Monitor *${monitor.name.replace(
67+
const text = `Monitor *${monitor.name.replaceAll(
6868
'-',
6969
'\\-',
7070
)}* changed status to *${getOperationalLabel(operational)}*

0 commit comments

Comments
 (0)