Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sanitise fake email domain #53

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

jezen
Copy link

@jezen jezen commented May 3, 2024

In order to more closely conform to RFC 1035 and actually generate valid fake emails, we only allow alphanumeric characters or hyphens in the text output.

See: https://datatracker.ietf.org/doc/html/rfc1035#section-2.3.1

Resolves #52

In order to more closely conform to RFC 1035 and actually generate valid
fake emails, we only allow alphanumeric characters or hyphens in the
text output.

See: https://datatracker.ietf.org/doc/html/rfc1035#section-2.3.1

Resolves fakedata-haskell#52
Copy link
Member

@psibi psibi left a comment

Choose a reason for hiding this comment

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

LGTM, can you look into the test failures ? Updating to use the last 3 lts is fine if fixing it is hard.

Also, can you add a test to not allow underscore ?

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.

Invalid domain names generated
2 participants