Skip to content

Conversation

novotnyj
Copy link
Member

This adds regex that matches a string containing list of comma separated emails (or single email). I'll need this regex for https://github.com/apify/apify-core/issues/4546

@novotnyj novotnyj requested review from B4nan and jancurn May 24, 2022 11:14
Copy link
Member

@jancurn jancurn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, maybe just pls add few more test cases

'test@example.com,a.b.c+123~@example.com,bar@example.com',
],
invalid: [
'not-an-email,test@example.com',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe let's add empty string? and some other extreme emails? newlines? tabs? e.g. text with no @ etc.

@novotnyj novotnyj merged commit 0f3a247 into master May 25, 2022
@novotnyj novotnyj deleted the feature/comma-separated-emails-regex branch May 25, 2022 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants