summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDoge-GUI <[email protected]>2021-05-13 19:41:37 +0800
committerGitHub <[email protected]>2021-05-13 19:41:37 +0800
commitb1caf481e325aad09392f771a4bee6c589c380f0 (patch)
treee82530d8cfd17568bef803cedbefe4b04ad784a6 /scripts
parentc796b777150f5cd186a9017c1ffe857734b0df9c (diff)
downloadchromate-b1caf481e325aad09392f771a4bee6c589c380f0.tar.gz
chromate-b1caf481e325aad09392f771a4bee6c589c380f0.tar.bz2
chromate-b1caf481e325aad09392f771a4bee6c589c380f0.zip
Remove local relative links
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 467ac97..7c394bd 100644
--- a/scripts/feed.js
+++ b/scripts/feed.js
@@ -34,7 +34,7 @@ hexo.extend.generator.register("feed", (locals) => {
locals.posts.sort('date', -1).each(function (post) {
if (!post.podcast) return;
let description = post.content.replace(/onclick=".*?"/gi, '')
- .replace(/class=".*?"/gi, '').replace(/href=#".*?"/gi, '')
+ .replace(/class=".*?"/gi, '').replace(/href="#.*?"/gi, '')
.replace(/id=".*?"/gi, '').replace(/rel=".*?"/gi, '')
.replace(/title=".*?"/gi, '').replace(/\n/g, "")
.replace(/\s+/g, ' ').trim();