Skip to content

Latest version generates invalid email addresses #2967

@Bertg

Description

@Bertg

Describe the bug

When letting faker generate email addresses based on names, it now generates invalid email addresses, where older versions did not.

Example:

# Faker 3.4.1
Faker::Internet.unique.email(name: " Msgr. Titus Harvey")
# => "harvey.msgr..titus@russel-von.example"

The email is invalid as two sequential dots appear.

# Faker 3.3.1
Faker::Internet.unique.email(name: " Msgr. Titus Harvey")
# => "harvey_msgr_titus@corwin.example"

To Reproduce

See code samples above

Expected behavior

Factory should keep generating valid email addresses, as a major escape is to populate databases with valid looking data.

Additional context

None

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions