join multiline titles

This commit is contained in:
mose 2019-09-16 19:26:00 +08:00
parent 134f5ca210
commit 81ac51b0a5

View file

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