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 @@ -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 ) && / ^ $ | ^ d a s h b o a r d ( \/ | $ ) / . test ( getCleanPathname ( url ) ) ;
90+ export const isHome = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => ! isGist ( url ) && / ^ $ | ^ d a s h b o a r d \/ ? $ / . test ( getCleanPathname ( url ) ) ;
9191TEST: 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 ) && / ^ ( f e e d | o r g s \/ [ ^ / ] + \/ d a s h b o a r d ) ( \/ | $ ) / . test ( getCleanPathname ( url ) ) ;
96+ 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 ) ) ;
9797TEST: addTests ( 'isFeed' , [
9898 'https://github.com/feed' ,
9999 'https://github.com/orgs/refined-github/dashboard' ,
You can’t perform that action at this time.
0 commit comments