add trim /close #1

This commit is contained in:
Mickael 2019-10-15 18:49:48 +02:00
parent 56751252af
commit 044d76db19
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ bot.global.text(/(https?:\/\/[^ ,\)"\n]*)/ig, async (b) => {
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 {
console.log('-----------------------------------');