add trim /close #1

This commit is contained in:
Mickael 2019-10-15 18:49:48 +02:00
parent 56751252af
commit 044d76db19

View file

@ -30,7 +30,7 @@ bot.global.text(/(https?:\/\/[^ ,\)"\n]*)/ig, async (b) => {
extra += " - [invidious](https://invidio.us/watch?v=" + t[1] + ")"; extra += " - [invidious](https://invidio.us/watch?v=" + t[1] + ")";
} }
} }
b.respond("[>>>](" + link + ") _" + match[1].replace(/\n/g, " ") + "_" + extra); b.respond("[>>>](" + link + ") _" + match[1].replace(/\n/g, " ").trim() + "_" + extra);
} }
} else { } else {
console.log('-----------------------------------'); console.log('-----------------------------------');