diff --git a/src/url_metadata.js b/src/url_metadata.js index c617d48..a989ce1 100644 --- a/src/url_metadata.js +++ b/src/url_metadata.js @@ -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('-----------------------------------');