join multiline titles

This commit is contained in:
mose 2019-09-16 19:26:00 +08:00
parent 134f5ca210
commit 81ac51b0a5
1 changed files with 1 additions and 1 deletions

View File

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