mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-26 22:56:52 +02:00
Update notification.js
Fix remove non ascii char from msg
This commit is contained in:
parent
ed93aae1c2
commit
eb34dc6cc2
@ -208,7 +208,8 @@ class Notification {
|
|||||||
"phone_number": notification.octopushPhoneNumber
|
"phone_number": notification.octopushPhoneNumber
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"text": msg,
|
//octopush not supporting non ascii char
|
||||||
|
"text": msg.replace(/[^\x00-\x7F]/g, ""),
|
||||||
"type": notification.octopushSMSType,
|
"type": notification.octopushSMSType,
|
||||||
"purpose": "alert",
|
"purpose": "alert",
|
||||||
"sender": notification.octopushSenderName
|
"sender": notification.octopushSenderName
|
||||||
|
Loading…
Reference in New Issue
Block a user