fixed missing :

merge-requests/3/head
Loïc Bersier 5 years ago
parent df40fa0f58
commit bd3461fddd

@ -63,7 +63,7 @@ class messageListener extends Listener {
let attach = '';
if (text.includes('[attach')) {
if (text.includes('[attach:')) {
attach = text.split(/(\[attach:.*?])/);
for (let i = 0, l = attach.length; i < l; i++) {
if (attach[i].includes('[attach:')) {
@ -71,7 +71,7 @@ class messageListener extends Listener {
i = attach.length;
}
}
text = text.replace(/(\[attach:.*?])/, '')
text = text.replace(/(\[attach:.*?])/, '');
}
// THIS SECTION IS VERY VERY BAD MUST CHANGE

Loading…
Cancel
Save