diff --git a/lib/v2/gov/news/index.js b/lib/v2/gov/news/index.js index a0d3346fcf..e8e5ef3841 100644 --- a/lib/v2/gov/news/index.js +++ b/lib/v2/gov/news/index.js @@ -74,7 +74,7 @@ module.exports = async (ctx) => { } } else { href = item.find('a').attr('href'); - if (href.startsWith(".")) { + if (href.startsWith('.')) { href = href.slice(1); } contentUrl = href.startsWith('/') ? `http://www.gov.cn${href}` : href;