File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -293,8 +293,8 @@ collect.set('isRepoHome', [
293293] ) ;
294294
295295export const isRepoRoot = ( url ?: URL | Location ) : boolean =>
296- / ^ ( t r e e \/ [ ^ / ] + ) ? $ / . test ( getRepoPath ( url ?? location ) ! ) ||
297- ( ! url && document . title . startsWith ( getRepoURL ( ) ) && ! document . title . endsWith ( getRepoURL ( ) ) ) ; // #15
296+ / ^ ( t r e e \/ [ ^ / ] + ) ? $ / . test ( getRepoPath ( url ?? location ) ! ) &&
297+ ( url ? true : ( document . title . startsWith ( getRepoURL ( ) ) && ! document . title . endsWith ( getRepoURL ( ) ) ) ) ; // #15
298298collect . set ( 'isRepoRoot' , [
299299 ...collect . get ( 'isRepoHome' ) as string [ ] ,
300300 'https://github.com/sindresorhus/refined-github/tree/native-copy-buttons' ,
Original file line number Diff line number Diff line change 6767 "@rollup/plugin-typescript" : " ^4.1.2" ,
6868 "@sindresorhus/tsconfig" : " ^0.7.0" ,
6969 "@types/jsdom" : " ^16.2.3" ,
70- "ava" : " ^3.8.2 " ,
70+ "ava" : " ^3.10.0 " ,
7171 "esm" : " ^3.2.25" ,
7272 "github-reserved-names" : " ^1.1.8" ,
7373 "jsdom" : " ^16.2.2" ,
You can’t perform that action at this time.
0 commit comments