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

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

Open
saiichihashimoto opened this issue Dec 23, 2023 · 0 comments
Open

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

saiichihashimoto opened this issue Dec 23, 2023 · 0 comments
Labels
help wanted Please help me! I'm lonely.

Comments

@saiichihashimoto
Copy link
Owner

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.

@saiichihashimoto saiichihashimoto added the help wanted Please help me! I'm lonely. label Dec 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Please help me! I'm lonely.
Projects
None yet
Development

No branches or pull requests

1 participant