Skip to content

Commit 4e5567a

Browse files
committed
chore: update issue template scripts
1 parent 103d07c commit 4e5567a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/scripts/create-rss.mjs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,13 @@ const rssFilePath = `./feeds/rss/${year}-${week}.json`;
138138
139139
let mdListContent = "";
140140
uniqueArray.forEach(post => {
141-
mdListContent += `- [${post.title}](${post.url}) [#${post.id}](https://github.com/jaywcjlove/quick-rss/issues/${post.id}) [@${post.author.name}](https://github.com/${post.author.name})\n`;
141+
let rssurl = post.url.replace(/(^[\n\s\r]+)|([\n\s\r]+$)/, '')
142+
let rsstitle = post.title.replace(/(^[\n\s\r]+)|([\n\s\r]+$)/, '')
143+
mdListContent += `- [${rsstitle}](${rssurl}) [#${post.id}](https://github.com/jaywcjlove/quick-rss/issues/${post.id}) [@${post.author.name}](https://github.com/${post.author.name})\n`;
142144
feed.addItem({
143-
title: post.title,
145+
title: rsstitle,
144146
id: post.id,
145-
link: post.url,
147+
link: rssurl,
146148
image: post.image,
147149
content: post.content_html,
148150
description: post.summary,

0 commit comments

Comments
 (0)