From 4dbd8f0e5717551bb57fd2b7c632b57515e2fe06 Mon Sep 17 00:00:00 2001 From: yuxinliu-alex Date: Fri, 22 Apr 2022 19:48:04 +0800 Subject: [PATCH] fix(route): CCTV - The link to detail page got blanks which cause the script can't get that item. (#9594) Co-authored-by: yuxinliu --- lib/v2/people/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/v2/people/index.js b/lib/v2/people/index.js index fee854ca2..acaaa7581 100644 --- a/lib/v2/people/index.js +++ b/lib/v2/people/index.js @@ -33,7 +33,7 @@ module.exports = async (ctx) => { .map((item) => { item = $(item); - const link = item.attr('href'); + const link = item.attr('href').trim(); return { title: item.text(),