From 682e4d45e215f1e24830b75a9e9b2007d968ef41 Mon Sep 17 00:00:00 2001 From: LouisLam Date: Wed, 25 Aug 2021 01:21:06 +0800 Subject: [PATCH] eslint for notification.js --- .eslintrc.js | 1 + server/notification.js | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 897cb7c5a..77482d4f4 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -75,5 +75,6 @@ module.exports = { "no-empty": ["error", { "allowEmptyCatch": true }], + "no-control-regex": "off" }, } diff --git a/server/notification.js b/server/notification.js index 344a427e0..446753ea4 100644 --- a/server/notification.js +++ b/server/notification.js @@ -404,7 +404,7 @@ class Notification { "messages": [ { "type": "text", - "text":"Test Successful!" + "text": "Test Successful!" } ] } @@ -415,7 +415,7 @@ class Notification { "messages": [ { "type": "text", - "text":"UptimeKuma Alert: [🔴 Down]\n" + "Name: " + monitorJSON["name"] + " \n" + heartbeatJSON["msg"] + "\nTime (UTC): " + heartbeatJSON["time"] + "text": "UptimeKuma Alert: [🔴 Down]\n" + "Name: " + monitorJSON["name"] + " \n" + heartbeatJSON["msg"] + "\nTime (UTC): " + heartbeatJSON["time"] } ] } @@ -426,7 +426,7 @@ class Notification { "messages": [ { "type": "text", - "text":"UptimeKuma Alert: [✅ Up]\n" + "Name: " + monitorJSON["name"] + " \n" + heartbeatJSON["msg"] + "\nTime (UTC): " + heartbeatJSON["time"] + "text": "UptimeKuma Alert: [✅ Up]\n" + "Name: " + monitorJSON["name"] + " \n" + heartbeatJSON["msg"] + "\nTime (UTC): " + heartbeatJSON["time"] } ] }