File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,7 @@ collect.set('isGist', [
89
89
'http://gist.github.com' ,
90
90
'https://gist.github.com/sindresorhus/0ea3c2845718a0a0f0beb579ff14f064' ,
91
91
'https://my-little-hub.com/gist' ,
92
+ 'https://gist.github.com/kidonng/0d16c7f17045f486751fad1b602204a0/revisions' ,
92
93
] ) ;
93
94
94
95
export const isGlobalConversationList = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => [ 'issues' , 'pulls' ] . includes ( url . pathname . split ( '/' , 2 ) [ 1 ] ! ) ;
@@ -505,6 +506,11 @@ collect.set('isSingleGist', [
505
506
'https://gist.github.com/sindresorhus/0ea3c2845718a0a0f0beb579ff14f064' ,
506
507
] ) ;
507
508
509
+ export const isGistRevision = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => isGist ( url ) && / ^ \/ ( g i s t \/ ) ? [ ^ / ] + \/ [ \d a - f ] { 32 } \/ r e v i s i o n s $ / . test ( url . pathname ) ;
510
+ collect . set ( 'isGistRevision' , [
511
+ 'https://gist.github.com/kidonng/0d16c7f17045f486751fad1b602204a0/revisions' ,
512
+ ] ) ;
513
+
508
514
export const isTrending = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => url . pathname === '/trending' || url . pathname . startsWith ( '/trending/' ) ;
509
515
collect . set ( 'isTrending' , [
510
516
'https://github.com/trending' ,
You can’t perform that action at this time.
0 commit comments