File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -288,11 +288,12 @@ TEST: addTests('isPRFiles', [
288288 'https://github.com/refined-github/refined-github/pull/148/changes/1e27d7998afdd3608d9fc3bf95ccf27fa5010641..e1aba6febb3fe38aafd1137cff28b536eeeabe7e' ,
289289] ) ;
290290
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 ) ;
291+ 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 ) ;
292292TEST: addTests ( 'isQuickPR' , [
293293 'https://github.com/sindresorhus/refined-github/compare/master...branch-name?quick_pull=1' ,
294294 'https://github.com/sindresorhus/refined-github/compare/branch-1...branch-2?quick_pull=1' ,
295295 'https://github.com/sindresorhus/refined-github/compare/test-branch?quick_pull=1' ,
296+ 'https://github.com/refined-github/sandbox/compare/default-a...fregante-patch-2?expand=1'
296297] ) ;
297298
298299const getStateLabel = ( ) : string | undefined => $ ( [
You can’t perform that action at this time.
0 commit comments