File tree Expand file tree Collapse file tree
services/apps/merge_suggestions_worker/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,7 +15,3 @@ export const EMAIL_AS_USERNAME_PLATFORMS = [
1515 PlatformType . GERRIT ,
1616]
1717
18- export const noreplyEmailProviders = {
19- github : '@users.noreply.github.com' ,
20- gitlab : '@users.noreply.gitlab.com' ,
21- } as const
Original file line number Diff line number Diff line change 11import { ILLMConsumableMember , PlatformType } from '@crowd/types'
22
3- import { EMAIL_AS_USERNAME_PLATFORMS , noreplyEmailProviders } from './enums'
3+ import { EMAIL_AS_USERNAME_PLATFORMS } from './enums'
4+
5+ const NOREPLY_SUFFIXES = [ '@users.noreply.github.com' , '@users.noreply.gitlab.com' ]
46
57function isNoreplyEmail ( value : string ) : boolean {
68 const lower = value . toLowerCase ( )
7- return Object . values ( noreplyEmailProviders ) . some ( ( s ) => lower . endsWith ( s ) )
9+ return NOREPLY_SUFFIXES . some ( ( s ) => lower . endsWith ( s ) )
810}
911
1012export const prefixLength = ( string : string ) => {
You can’t perform that action at this time.
0 commit comments