From d811248e066774fec4fe334bf3d00ef2300a822b Mon Sep 17 00:00:00 2001 From: Doge Date: Thu, 13 May 2021 18:56:29 +0800 Subject: replaceAll to replace --- scripts/feed.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/feed.js b/scripts/feed.js index a28cea2..11e59cb 100644 --- a/scripts/feed.js +++ b/scripts/feed.js @@ -33,7 +33,7 @@ hexo.extend.generator.register("feed", (locals) => { // Rendering for podcasts locals.posts.sort('date', -1).each(function (post) { if (!post.podcast) return; - let description = post.content.replaceAll(/onclick=".*?"/gi, ''); + let description = post.content.replace(/onclick=".*?"/gi, ''); feed.addItem({ title: post.title, description: description.replace(/>\s+<', ''), -- cgit v1.2.3