Skip to content

Commit 7813ff9

Browse files
corvofengeidam
authored andcommitted
Replace all '-' for monitor name.
Signed-off-by: corvofeng <corvofeng@gmail.com>
1 parent 596d303 commit 7813ff9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/functions/helpers.js

Lines changed: 1 addition & 1 deletion
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)