fix useless link in tweet

This commit is contained in:
DIYgod 2018-09-18 00:32:58 +08:00
parent 1948bd73dc
commit dcea9e29fa
No known key found for this signature in database
GPG Key ID: EC0B76A252D3EF67
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ module.exports = async (ctx) => {
description: data[0].user.description,
item: data.map((item) => {
item = item.retweeted_status || item;
item.full_text = item.full_text.replace(/https:\/\/t\.co(.*)$/, '');
item.full_text = item.full_text.replace(/https:\/\/t\.co(.*)/g, '');
let img = '';
item.extended_entities &&
item.extended_entities.media.forEach((item) => {