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', [
225225 'https://github.com/sindresorhus/refined-github/pulls?q=is%3Apr+is%3Aclosed' ,
226226] ) ;
227227
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 ! ) ;
229229collect . set ( 'isPRCommit' , [
230230 'https://github.com/sindresorhus/refined-github/pull/148/commits/0019603b83bd97c2f7ef240969f49e6126c5ec85' ,
231231 'https://github.com/sindresorhus/refined-github/pull/148/commits/00196' ,
@@ -468,7 +468,7 @@ collect.set('isRepoWiki', [
468468 'https://github.com/tooomm/wikitest/wiki/Getting-Started/_edit' ,
469469] ) ;
470470
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 ! ) ;
472472collect . set ( 'isSingleCommit' , [
473473 'https://github.com/sindresorhus/refined-github/commit/5b614b9035f2035b839f48b4db7bd5c3298d526f' ,
474474 'https://github.com/sindresorhus/refined-github/commit/5b614' ,
You can’t perform that action at this time.
0 commit comments