style: auto format

This commit is contained in:
github-actions[bot] 2023-09-06 13:10:57 +00:00
parent caa8800641
commit 0d69ffde65
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ module.exports = async (ctx) => {
}
const $ = cheerio.load(result.data);
const metadata = $('script[type="application/ld+json"]').eq(0).text().trim().replaceAll(/[\b]/g, "");
const metadata = $('script[type="application/ld+json"]').eq(0).text().trim().replaceAll(/[\b]/g, '');
const data = metadata.startsWith('[') ? JSON.parse(metadata)[0] : JSON.parse(metadata);
// e.g. https://udn.com/news/story/7331/6576320
const content = $('.article-content__editor');