fixed wrongly parsing notification message with [ ] in title

This commit is contained in:
Tony Yang
2019-06-29 23:58:42 +08:00
parent ef220fe537
commit 942e3c7846

View File

@@ -89,7 +89,7 @@ function parseNotification(data) {
function parseMessage(message, url) {
let regex = {
"username": /\{([^\{\}]+)\}@(\w+)/g,
"url": /\[([^\[\[]*)\]/g
"url": /\[(.*)\]/g
};
return message.replace(regex.username, function (_match, name, id, _offset, _string) {