Skip to content

Commit

Permalink
fix: remove https prefix for feed://
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed Dec 16, 2023
1 parent 5d3eeb8 commit a65da8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/quick-subscriptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,5 +95,5 @@ export const quickSubscriptions: ({
key: "local",
subscribeDomain: "feed://",
themeColor: "#f28f34",
getSubscribePath: (data) => data.url
getSubscribePath: (data) => data.url.replace(/^https?:\/\//, "")
}]
2 changes: 1 addition & 1 deletion src/popup/RSSItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function RSSItem({
} else {
subscriptionDomain = quickSubscription.subscribeDomain
}
subscriptionDomain = subscriptionDomain.replace(/\/$/, "")
subscriptionDomain = subscriptionDomain.replace(/(?<!\/)\/$/, "")

return (
<Button variant="rss" size="sm" className={`border-[${quickSubscription.themeColor}] text-[${quickSubscription.themeColor}] hover:bg-[${quickSubscription.themeColor}]`}>
Expand Down

0 comments on commit a65da8c

Please sign in to comment.