Skip to content

Commit 6ed1e73

Browse files
authored
Include /dashboard-feed in isDashboard (#187)
1 parent 5dd1732 commit 6ed1e73

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ addTests('isCompareWikiPage', [
6161
'https://github.com/brookhong/Surfingkeys/wiki/Color-Themes/_compare/8ebb46b1a12d16fc1af442b7df0ca13ca3bb34dc...80e51eeabe69b15a3f23880ecc36f800b71e6c6d',
6262
]);
6363

64-
export const isDashboard = (url: URL | HTMLAnchorElement | Location = location): boolean => !isGist(url) && /^$|^(orgs\/[^/]+\/)?dashboard(\/|$)/.test(getCleanPathname(url));
64+
export const isDashboard = (url: URL | HTMLAnchorElement | Location = location): boolean => !isGist(url) && /^$|^(orgs\/[^/]+\/)?dashboard(-feed)?(\/|$)/.test(getCleanPathname(url));
6565
addTests('isDashboard', [
6666
'https://github.com///',
6767
'https://github.com//',
@@ -81,6 +81,7 @@ addTests('isDashboard', [
8181
'https://github.com/?tab=following', // Gotcha for `isUserProfileFollowingTab`
8282
'https://github.com/?tab=overview', // Gotcha for `isUserProfileMainTab`
8383
'https://github.com?search=1', // Gotcha for `isRepoTree`
84+
'https://github.com/dashboard-feed',
8485
]);
8586

8687
export const isEnterprise = (url: URL | HTMLAnchorElement | Location = location): boolean => url.hostname !== 'github.com' && url.hostname !== 'gist.github.com';

0 commit comments

Comments
 (0)