Skip to content

Commit 0ab7552

Browse files
correction
1 parent 5b0eee7 commit 0ab7552

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,13 @@ TEST: addTests('isDashboard', [
8787
'https://github.com/dashboard-feed',
8888
]);
8989

90-
export const isHome = (url: URL | HTMLAnchorElement | Location = location): boolean => !isGist(url) && /^$|^dashboard(\/|$)/.test(getCleanPathname(url));
90+
export const isHome = (url: URL | HTMLAnchorElement | Location = location): boolean => !isGist(url) && /^$|^dashboard\/?$/.test(getCleanPathname(url));
9191
TEST: addTests('isHome', [
9292
'https://github.com',
9393
'https://github.com/dashboard',
9494
]);
9595

96-
export const isFeed = (url: URL | HTMLAnchorElement | Location = location): boolean => !isGist(url) && /^(feed|orgs\/[^/]+\/dashboard)(\/|$)/.test(getCleanPathname(url));
96+
export const isFeed = (url: URL | HTMLAnchorElement | Location = location): boolean => !isGist(url) && /^(feed|orgs\/[^/]+\/dashboard)\/?$/.test(getCleanPathname(url));
9797
TEST: addTests('isFeed', [
9898
'https://github.com/feed',
9999
'https://github.com/orgs/refined-github/dashboard',

0 commit comments

Comments
 (0)