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
202202// If there's a Report Abuse link, we're not part of the org
203203export const isOwnOrganizationProfile = ( ) : boolean => isOrganizationProfile ( ) && ! exists ( '[href*="contact/report-abuse?report="]' ) ;
204204
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 ) ;
206206TEST: addTests ( 'isProject' , [
207207 'https://github.com/sindresorhus/refined-github/projects/3' ,
208+ 'https://github.com/orgs/RSSNext/projects/3' ,
208209] ) ;
209210
210211export const isProjects = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => getRepo ( url ) ?. path === 'projects' ;
You can’t perform that action at this time.
0 commit comments