fixed wrongly parsing notification message with [
]
in title
This commit is contained in:
parent
ef220fe537
commit
942e3c7846
@ -89,7 +89,7 @@ function parseNotification(data) {
|
|||||||
function parseMessage(message, url) {
|
function parseMessage(message, url) {
|
||||||
let regex = {
|
let regex = {
|
||||||
"username": /\{([^\{\}]+)\}@(\w+)/g,
|
"username": /\{([^\{\}]+)\}@(\w+)/g,
|
||||||
"url": /\[([^\[\[]*)\]/g
|
"url": /\[(.*)\]/g
|
||||||
};
|
};
|
||||||
|
|
||||||
return message.replace(regex.username, function (_match, name, id, _offset, _string) {
|
return message.replace(regex.username, function (_match, name, id, _offset, _string) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user