Skip to content

Commit

Permalink
Fix blog url parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
olsh committed Mar 20, 2022
1 parent e339ebe commit eac2cbf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

"name": "Feedly Notifier",
"description": "__MSG_ExtensionDescription__",
"version": "2.26.2",
"version": "2.26.3",
"default_locale": "en",
"permissions": [
"storage",
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ function parseFeeds(feedlyResponse) {

let blogUrl;
try {
blogUrl = item.origin.htmlUrl.match(/http(?:s)?:\/\/[^/]+/i).pop();
blogUrl = item.origin.htmlUrl.match(/https?:\/\/[^/?]+/i).pop();
} catch (exception) {
blogUrl = "#";
}
Expand Down

0 comments on commit eac2cbf

Please sign in to comment.