Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Add regex support to faker generator #1586

Open
1 task
r-stuart opened this issue Dec 16, 2019 · 0 comments
Open
1 task

Add regex support to faker generator #1586

r-stuart opened this issue Dec 16, 2019 · 0 comments

Comments

@r-stuart
Copy link
Contributor

r-stuart commented Dec 16, 2019

Feature Request

Description of Problem

Following on from #1584, the faker generator doesn't support arbitrary regexes.

Acceptance Criteria

  • A simple regex applied to any (all) faker types, which has one or more valid results, should successfully generate values.

(Optional) Potential approaches to solution

The flaw in the original implementation was to assume the regexRepresentation was a valid regex, particularly after intersections have been applied (see here). The solution would be to either correctly intersect these regexes (which may make them harder to read for debugging), or to find a solution that invokes the automaton with the values pulled down from faker. The latter could be done by creating a new automaton for each value, and intersecting that new automaton with the old one - if this approach is used, performance should be checked carefully.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant