File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -185,8 +185,8 @@ export const isOrganizationProfile = (): boolean => exists('meta[name="hovercard
185
185
186
186
export const isOrganizationRepo = ( ) : boolean => Boolean ( document . querySelector < HTMLElement > ( '[data-owner-scoped-search-url]' ) ?. dataset [ 'ownerScopedSearchUrl' ] ! . startsWith ( '/org' ) ) ;
187
187
188
- export const isOrganizationDiscussion = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => / ^ o r g s \/ [ ^ / ] + \/ t e a m s \/ [ ^ / ] + ( $ | \/ d i s c u s s i o n s ) / . test ( getCleanPathname ( url ) ) ;
189
- addTests ( 'isOrganizationDiscussion ' , [
188
+ export const isTeamDiscussion = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => / ^ o r g s \/ [ ^ / ] + \/ t e a m s \/ [ ^ / ] + ( $ | \/ d i s c u s s i o n s ) / . test ( getCleanPathname ( url ) ) ;
189
+ addTests ( 'isTeamDiscussion ' , [
190
190
'https://github.com/orgs/refined-github/teams/core-team/discussions?pinned=1' ,
191
191
'https://github.com/orgs/refined-github/teams/core-team/discussions/1' ,
192
192
'https://github.com/orgs/refined-github/teams/core-team' ,
@@ -630,7 +630,7 @@ export const hasComments = (url: URL | HTMLAnchorElement | Location = location):
630
630
isPR ( url )
631
631
|| isIssue ( url )
632
632
|| isCommit ( url )
633
- || isOrganizationDiscussion ( url )
633
+ || isTeamDiscussion ( url )
634
634
|| isSingleGist ( url ) ;
635
635
636
636
addTests ( 'hasRichTextEditor' , combinedTestOnly ) ;
You can’t perform that action at this time.
0 commit comments