Skip to content

Faker for Rule.regex(..., { invert: true }) #613

Open
@saiichihashimoto

Description

For the regex validations, we found a library to mock those, but we need a library to not mock those. We could just mock arbitrary strings and check against the regex until we don't match. Seems risky with infinite loops. Maybe there's a way with randexp. We could alter the regex to be (?!(<the-provided-regex>)) but I'm seeing a lot about why that's not good.

Metadata

Assignees

No one assigned

    Labels

    help wantedPlease help me! I'm lonely.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions