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 @@ -100,6 +100,7 @@ export const isGist = (url: URL | HTMLAnchorElement | Location = location): bool
100
100
TEST: addTests ( 'isGist' , [
101
101
'https://gist.github.com' ,
102
102
'http://gist.github.com' ,
103
+ 'https://gist.github.com/new' ,
103
104
'https://gist.github.com/fregante/2205329b71218fa2c1d3' ,
104
105
'https://gist.github.com/fregante/2205329b71218fa2c1d3/d1ebf7d9cfaba4d4596d2ea9174e202479a5f9ad' ,
105
106
'https://gist.github.com/sindresorhus/0ea3c2845718a0a0f0beb579ff14f064' ,
@@ -756,7 +757,7 @@ export const canUserAdminRepo = (): boolean => isRepo() && exists('.reponav-item
756
757
/** @deprecated Use `canUserAdminRepo` */
757
758
export const canUserEditRepo = canUserAdminRepo ;
758
759
759
- export const isNewRepo = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => url . pathname === '/new' || / ^ o r g a n i z a t i o n s \/ [ ^ / ] + \/ r e p o s i t o r i e s \/ n e w $ / . test ( getCleanPathname ( url ) ) ;
760
+ export const isNewRepo = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => ! isGist ( url ) && ( url . pathname === '/new' || / ^ o r g a n i z a t i o n s \/ [ ^ / ] + \/ r e p o s i t o r i e s \/ n e w $ / . test ( getCleanPathname ( url ) ) ) ;
760
761
TEST: addTests ( 'isNewRepo' , [
761
762
'https://github.com/new' ,
762
763
'https://github.com/organizations/npmhub/repositories/new' ,
You can’t perform that action at this time.
0 commit comments