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 @@ -183,7 +183,7 @@ TEST: addTests('isGist', [
183183 'https://gist.my-little-hub.com/in-fragrante' ,
184184] ) ;
185185
186- export const isGlobalIssueList = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => getCleanPathname ( url ) === 'issues' ;
186+ export const isGlobalIssueList = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => / ^ i s s u e s ( $ | \/ ) / . test ( getCleanPathname ( url ) ) ;
187187TEST: addTests ( 'isGlobalIssueList' , [
188188 'https://github.com/issues' ,
189189 'https://github.com/issues/assigned' ,
@@ -192,7 +192,7 @@ TEST: addTests('isGlobalIssueList', [
192192 'https://github.com//issues/' ,
193193] ) ;
194194
195- export const isGlobalPRList = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => getCleanPathname ( url ) === 'pulls' ;
195+ export const isGlobalPRList = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => / ^ p u l l s ( $ | \/ ) / . test ( getCleanPathname ( url ) ) ;
196196TEST: addTests ( 'isGlobalPRList' , [
197197 'https://github.com/pulls' ,
198198 'https://github.com/pulls/assigned' ,
You can’t perform that action at this time.
0 commit comments