@@ -52,9 +52,7 @@ TEST: addTests('isCompare', [
5252 'https://github.com/sindresorhus/refined-github/compare' ,
5353 'https://github.com/sindresorhus/refined-github/compare/' ,
5454 'https://github.com/sindresorhus/refined-github/compare/master...branch-name' ,
55- 'https://github.com/sindresorhus/refined-github/compare/master...branch-name?quick_pull=1' ,
56- 'https://github.com/sindresorhus/refined-github/compare/branch-1...branch-2?quick_pull=1' ,
57- 'https://github.com/sindresorhus/refined-github/compare/test-branch?quick_pull=1' ,
55+ 'isQuickPR' ,
5856] ) ;
5957
6058export const isCompareWikiPage = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => isRepoWiki ( url ) && getCleanPathname ( url ) . split ( '/' ) . slice ( 3 , 5 ) . includes ( '_compare' ) ;
@@ -288,11 +286,13 @@ TEST: addTests('isPRFiles', [
288286 'https://github.com/refined-github/refined-github/pull/148/changes/1e27d7998afdd3608d9fc3bf95ccf27fa5010641..e1aba6febb3fe38aafd1137cff28b536eeeabe7e' ,
289287] ) ;
290288
291- export const isQuickPR = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => isCompare ( url ) && / [ ? & ] q u i c k _ p u l l = 1 ( & | $ ) / . test ( url . search ) ;
289+ export const isQuickPR = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => isCompare ( url ) && / [ ? & ] ( q u i c k _ p u l l | e x p a n d ) = 1 ( & | $ ) / . test ( url . search ) ;
292290TEST: addTests ( 'isQuickPR' , [
293291 'https://github.com/sindresorhus/refined-github/compare/master...branch-name?quick_pull=1' ,
294292 'https://github.com/sindresorhus/refined-github/compare/branch-1...branch-2?quick_pull=1' ,
295293 'https://github.com/sindresorhus/refined-github/compare/test-branch?quick_pull=1' ,
294+ 'https://github.com/refined-github/sandbox/compare/fregante-patch-2?expand=1' ,
295+ 'https://github.com/refined-github/sandbox/compare/default-a...fregante-patch-2?expand=1' ,
296296] ) ;
297297
298298const getStateLabel = ( ) : string | undefined => $ ( [
0 commit comments