File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -202,9 +202,10 @@ export const isOwnUserProfile = (): boolean => getCleanPathname() === getLoggedI
202
202
// If there's a Report Abuse link, we're not part of the org
203
203
export const isOwnOrganizationProfile = ( ) : boolean => isOrganizationProfile ( ) && ! exists ( '[href*="contact/report-abuse?report="]' ) ;
204
204
205
- export const isProject = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => / ^ p r o j e c t s \/ \d + / . test ( getRepo ( url ) ?. path ) ;
205
+ export const isProject = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => / ^ p r o j e c t s \/ \d + / . test ( getRepo ( url ) ?. path ?? getOrg ( url ) ?. path ) ;
206
206
TEST: addTests ( 'isProject' , [
207
207
'https://github.com/sindresorhus/refined-github/projects/3' ,
208
+ 'https://github.com/orgs/RSSNext/projects/3' ,
208
209
] ) ;
209
210
210
211
export const isProjects = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => getRepo ( url ) ?. path === 'projects' ;
You can’t perform that action at this time.
0 commit comments