diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/feed.js | 2 |
1 files changed, 1 insertions, 1 deletions
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+</g, '><', ''), |