@@ -56,7 +56,7 @@ export const _isCompare = [
56
56
'https://github.com/sindresorhus/refined-github/compare/test-branch?quick_pull=1'
57
57
] ;
58
58
59
- export const isDashboard = ( ) : boolean => ! isGist ( ) && / ^ $ | ^ ( o r g s [ / ] [ ^ / ] + [ / ] ) ? d a s h b o a r d ( [ / ] | $ ) / . test ( getCleanPathname ( ) ) ;
59
+ export const isDashboard = ( ) : boolean => ! isGist ( ) && / ^ $ | ^ ( o r g s \/ [ ^ / ] + \/ ) ? d a s h b o a r d ( \/ | $ ) / . test ( getCleanPathname ( ) ) ;
60
60
export const _isDashboard = [
61
61
'https://github.com/' ,
62
62
'https://github.com' ,
@@ -136,7 +136,7 @@ export const _isNewRelease = [
136
136
'https://github.com/sindresorhus/refined-github/releases/new'
137
137
] ;
138
138
139
- export const isNotifications = ( ) : boolean => / ^ ( [ ^ / ] + [ / ] [ ^ / ] + \/ ) ? n o t i f i c a t i o n s / . test ( getCleanPathname ( ) ) ;
139
+ export const isNotifications = ( ) : boolean => / ^ ( (?: [ ^ / ] + \/ ) { 2 } ) ? n o t i f i c a t i o n s / . test ( getCleanPathname ( ) ) ;
140
140
export const _isNotifications = [
141
141
'https://github.com/notifications' ,
142
142
'https://github.com/notifications/participating' ,
@@ -194,7 +194,7 @@ export const _isPRList = [
194
194
'https://github.com/sindresorhus/refined-github/pulls?q=is%3Apr+is%3Aclosed'
195
195
] ;
196
196
197
- export const isPRCommit = ( ) : boolean => / ^ p u l l \/ \d + \/ c o m m i t s \/ [ 0 - 9 a - f ] { 5 , 40 } / . test ( getRepoPath ( ) ! ) ;
197
+ export const isPRCommit = ( ) : boolean => / ^ p u l l \/ \d + \/ c o m m i t s \/ [ \d a - f ] { 5 , 40 } / . test ( getRepoPath ( ) ! ) ;
198
198
export const _isPRCommit = [
199
199
'https://github.com/sindresorhus/refined-github/pull/148/commits/0019603b83bd97c2f7ef240969f49e6126c5ec85' ,
200
200
'https://github.com/sindresorhus/refined-github/pull/148/commits/00196'
@@ -293,7 +293,7 @@ export const _isRepoIssueList = [
293
293
'https://github.com/sindresorhus/refined-github/issues?q=is%3Aclosed+sort%3Aupdated-desc'
294
294
] ;
295
295
296
- export const isRepoRoot = ( ) : boolean => / ^ ( t r e e [ / ] [ ^ / ] + ) ? $ / . test ( getRepoPath ( ) ! ) ;
296
+ export const isRepoRoot = ( ) : boolean => / ^ ( t r e e \/ [ ^ / ] + ) ? $ / . test ( getRepoPath ( ) ! ) ;
297
297
export const _isRepoRoot = [
298
298
// Some tests are here only as "gotchas" for other tests that may misidentify their pages
299
299
'https://github.com/sindresorhus/edit' ,
@@ -333,7 +333,7 @@ export const _isRepoTree = [
333
333
export const isRepoWithAccess = ( ) : boolean => isRepo ( ) && select . exists ( '.reponav-item[href$="/settings"]' ) ;
334
334
export const _isRepoWithAccess = domBased ;
335
335
336
- export const isSingleCommit = ( ) : boolean => / ^ c o m m i t \/ [ 0 - 9 a - f ] { 5 , 40 } / . test ( getRepoPath ( ) ! ) ;
336
+ export const isSingleCommit = ( ) : boolean => / ^ c o m m i t \/ [ \d a - f ] { 5 , 40 } / . test ( getRepoPath ( ) ! ) ;
337
337
export const _isSingleCommit = [
338
338
'https://github.com/sindresorhus/refined-github/commit/5b614b9035f2035b839f48b4db7bd5c3298d526f' ,
339
339
'https://github.com/sindresorhus/refined-github/commit/5b614'
@@ -351,7 +351,7 @@ export const _isFileFinder = [
351
351
'https://github.com/sindresorhus/refined-github/find/master'
352
352
] ;
353
353
354
- export const isSingleGist = ( ) : boolean => isGist ( ) && / ^ \/ ( g i s t \/ ) ? [ ^ / ] + \/ [ 0 - 9 a - f ] { 32 } $ / . test ( location . pathname ) ;
354
+ export const isSingleGist = ( ) : boolean => isGist ( ) && / ^ \/ ( g i s t \/ ) ? [ ^ / ] + \/ [ \d a - f ] { 32 } $ / . test ( location . pathname ) ;
355
355
export const _isSingleGist = [
356
356
'https://gist.github.com/sindresorhus/0ea3c2845718a0a0f0beb579ff14f064'
357
357
] ;
0 commit comments