diff options
| author | Doge <guiqiqi187@gmail.com> | 2021-05-13 18:56:29 +0800 | 
|---|---|---|
| committer | Doge <guiqiqi187@gmail.com> | 2021-05-13 18:56:29 +0800 | 
| commit | d811248e066774fec4fe334bf3d00ef2300a822b (patch) | |
| tree | 4ab9f180312af63a742a44d42f1fa8d1fa8a37fc /scripts | |
| parent | 5e2ae7733ca351ae57fc4fd756ec03f4bc0fc672 (diff) | |
| download | chromate-d811248e066774fec4fe334bf3d00ef2300a822b.tar.gz chromate-d811248e066774fec4fe334bf3d00ef2300a822b.tar.bz2 chromate-d811248e066774fec4fe334bf3d00ef2300a822b.zip | |
replaceAll to replace
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, '><', ''), | 
