File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ) && / ^ $ | ^ d a s h b o a r d \/ ? $ / . test ( getCleanPathname ( url ) ) ;
134+ export const isHome = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => ! isGist ( url ) && / ^ $ | ^ d a s h b o a r d \/ ? $ / . test ( processPathname ( url ) ) ;
135135TEST: 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 ) && / ^ ( f e e d | o r g s \/ [ ^ / ] + \/ d a s h b o a r d ) \/ ? $ / . test ( getCleanPathname ( url ) ) ;
153+ export const isFeed = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => ! isGist ( url ) && / ^ ( f e e d | o r g s \/ [ ^ / ] + \/ d a s h b o a r d ) \/ ? $ / . test ( processPathname ( url ) ) ;
154154TEST: addTests ( 'isFeed' , [
155155 'https://github.com/feed' ,
156156 'https://github.com/orgs/refined-github/dashboard' ,
You can’t perform that action at this time.
0 commit comments