fix link parsing

This commit is contained in:
mose 2019-09-19 21:01:15 +08:00
parent 23c5208cbc
commit 69bd3e60c9

View file

@ -7,7 +7,7 @@ var request_options = {
}
};
bot.global.text(/(https?:\/\/[^ ,\)"]*)/ig, (b) => {
bot.global.text(/(https?:\/\/[^ ,\)"\n]*)/ig, (b) => {
// console.log(JSON.stringify(b.envelope.payload, null, 2));
for (url of b.match) {
// console.log(JSON.stringify(url, null, 2));