From c5cc5cf1590663359fb4d559246fa52dc2c0e526 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 4 Jun 2023 14:07:24 +0000 Subject: [PATCH] style: auto format --- lib/v2/gov/news/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;