Skip to content

Commit

Permalink
Roll back feedspub btn logic
Browse files Browse the repository at this point in the history
  • Loading branch information
timqian authored Sep 15, 2023
1 parent d72e7cc commit fcc829b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,10 @@ async function getResultAndUpdateREADME() {
const getFeedsPubBtn = (feedLink, followCount) =>
`[<img src="https://img.shields.io/static/v1?label=follow&message=${followCount}&style=social&logo=rss">](https://feeds.pub/feed/${encodeURIComponent(feedLink)})`;
const newTable = table.map(row => {
const url = new URL(row[1])
return [
row[2] ? getFeedsPubBtn(row[2], row[4]) : '',
row[0].replace(/\|/g, '&#124;'),
`[${url.protocol}//${url.host}/](${url.href})`,
row[1],
row[3]
]
});
Expand Down

0 comments on commit fcc829b

Please sign in to comment.