File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -756,7 +756,7 @@ export const canUserAdminRepo = (): boolean => isRepo() && exists('.reponav-item
756756/** @deprecated Use `canUserAdminRepo` */
757757export const canUserEditRepo = canUserAdminRepo ;
758758
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 ) ) ;
759+ 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 ) ) ) ;
760760TEST: addTests ( 'isNewRepo' , [
761761 'https://github.com/new' ,
762762 'https://github.com/organizations/npmhub/repositories/new' ,
You can’t perform that action at this time.
0 commit comments