summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDoge <[email protected]>2021-05-13 18:56:29 +0800
committerDoge <[email protected]>2021-05-13 18:56:29 +0800
commitd811248e066774fec4fe334bf3d00ef2300a822b (patch)
tree4ab9f180312af63a742a44d42f1fa8d1fa8a37fc /scripts
parent5e2ae7733ca351ae57fc4fd756ec03f4bc0fc672 (diff)
downloadchromate-d811248e066774fec4fe334bf3d00ef2300a822b.tar.gz
chromate-d811248e066774fec4fe334bf3d00ef2300a822b.tar.bz2
chromate-d811248e066774fec4fe334bf3d00ef2300a822b.zip
replaceAll to replace
Diffstat (limited to 'scripts')
-rw-r--r--scripts/feed.js2
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, '><', ''),