Skip to content

Commit a85cfdc

Browse files
fix
1 parent 60e98a9 commit a85cfdc

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
@@ -131,7 +131,7 @@ TEST: addTests('isDashboard', [
131131
'https://github.com/dashboard-feed',
132132
]);
133133

134-
export const isHome = (url: URL | HTMLAnchorElement | Location = location): boolean => !isGist(url) && /^$|^dashboard\/?$/.test(getCleanPathname(url));
134+
export const isHome = (url: URL | HTMLAnchorElement | Location = location): boolean => !isGist(url) && /^$|^dashboard\/?$/.test(processPathname(url));
135135
TEST: addTests('isHome', [
136136
'https://github.com',
137137
'https://github.com//dashboard',
@@ -150,7 +150,7 @@ TEST: addTests('isHome', [
150150
'https://github.com?search=1', // Gotcha for `isRepoTree`
151151
]);
152152

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

0 commit comments

Comments
 (0)