File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -225,7 +225,7 @@ collect.set('isPRList', [
225
225
'https://github.com/sindresorhus/refined-github/pulls?q=is%3Apr+is%3Aclosed' ,
226
226
] ) ;
227
227
228
- export const isPRCommit = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => / ^ p u l l \/ \d + \/ c o m m i t s \/ [ \d a - f ] { 5 , 40 } / . test ( getRepo ( url ) ?. path ! ) ;
228
+ export const isPRCommit = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => / ^ p u l l \/ \d + \/ c o m m i t s \/ [ \d a - f ] { 5 , 40 } $ / . test ( getRepo ( url ) ?. path ! ) ;
229
229
collect . set ( 'isPRCommit' , [
230
230
'https://github.com/sindresorhus/refined-github/pull/148/commits/0019603b83bd97c2f7ef240969f49e6126c5ec85' ,
231
231
'https://github.com/sindresorhus/refined-github/pull/148/commits/00196' ,
@@ -468,7 +468,7 @@ collect.set('isRepoWiki', [
468
468
'https://github.com/tooomm/wikitest/wiki/Getting-Started/_edit' ,
469
469
] ) ;
470
470
471
- export const isSingleCommit = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => / ^ c o m m i t \/ [ \d a - f ] { 5 , 40 } / . test ( getRepo ( url ) ?. path ! ) ;
471
+ export const isSingleCommit = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => / ^ c o m m i t \/ [ \d a - f ] { 5 , 40 } $ / . test ( getRepo ( url ) ?. path ! ) ;
472
472
collect . set ( 'isSingleCommit' , [
473
473
'https://github.com/sindresorhus/refined-github/commit/5b614b9035f2035b839f48b4db7bd5c3298d526f' ,
474
474
'https://github.com/sindresorhus/refined-github/commit/5b614' ,
You can’t perform that action at this time.
0 commit comments