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', [
293
293
] ) ;
294
294
295
295
export 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
298
298
collect . set ( 'isRepoRoot' , [
299
299
...collect . get ( 'isRepoHome' ) as string [ ] ,
300
300
'https://github.com/sindresorhus/refined-github/tree/native-copy-buttons' ,
Original file line number Diff line number Diff line change 67
67
"@rollup/plugin-typescript" : " ^4.1.2" ,
68
68
"@sindresorhus/tsconfig" : " ^0.7.0" ,
69
69
"@types/jsdom" : " ^16.2.3" ,
70
- "ava" : " ^3.8.2 " ,
70
+ "ava" : " ^3.10.0 " ,
71
71
"esm" : " ^3.2.25" ,
72
72
"github-reserved-names" : " ^1.1.8" ,
73
73
"jsdom" : " ^16.2.2" ,
You can’t perform that action at this time.
0 commit comments