chore: fix typos in code comments (#5966)

Signed-off-by: ianlv <sunlvyun@outlook.com>
This commit is contained in:
ianlv
2025-07-02 22:18:13 +08:00
committed by GitHub
parent 9506b3a16b
commit 54b0c89ea5
6 changed files with 6 additions and 6 deletions

View File

@@ -11,7 +11,7 @@ class PushDeer extends NotificationProvider {
async send(notification, msg, monitorJSON = null, heartbeatJSON = null) {
const okMsg = "Sent Successfully.";
const serverUrl = notification.pushdeerServer || "https://api2.pushdeer.com";
// capture group below is nessesary to prevent an ReDOS-attack
// capture group below is necessary to prevent an ReDOS-attack
const url = `${serverUrl.trim().replace(/([^/])\/+$/, "$1")}/message/push`;
let valid = msg != null && monitorJSON != null && heartbeatJSON != null;