removing spaces was bad idea
This commit is contained in:
parent
ab68f5bf1a
commit
1a859350ce
1 changed files with 0 additions and 3 deletions
|
@ -71,7 +71,6 @@ class messageListener extends Listener {
|
|||
attach = text.split(/(\[attach:.*?])/);
|
||||
for (let i = 0, l = attach.length; i < l; i++) {
|
||||
if (attach[i].includes('[attach:')) {
|
||||
attach = attach[i].replace(' ', '');
|
||||
attach = attach[i].replace('[attach:', '').slice(0, -1);
|
||||
i = attach.length;
|
||||
}
|
||||
|
@ -95,7 +94,6 @@ class messageListener extends Listener {
|
|||
|
||||
for (let i = 0, l = image.length; i < l; i++) {
|
||||
if (image[i].includes('[embedImage:')) {
|
||||
image = image[i].replace(' ', '');
|
||||
image = image[i].replace('[embedImage:', '').slice(0, -1);
|
||||
text = text.replace(/(\[embedimage:.*?])/g, '');
|
||||
i = image.length;
|
||||
|
@ -108,7 +106,6 @@ class messageListener extends Listener {
|
|||
|
||||
for (let i = 0, l = thumbnail.length; i < l; i++) {
|
||||
if (thumbnail[i].includes('[embedThumbnail:')) {
|
||||
thumbnail = thumbnail[i].replace(' ', '');
|
||||
thumbnail = thumbnail[i].replace('[embedThumbnail:', '').slice(0, -1);
|
||||
text = text.replace(/(\[embedThumbnail:.*?])/g, '');
|
||||
i = thumbnail.length;
|
||||
|
|
Loading…
Reference in a new issue