xogroup / felicity

Javascript object constructors and sample data based on Joi schema.
Other
111 stars 9 forks source link

Additional String options: regex. #13

Closed WesTyler closed 7 years ago

WesTyler commented 7 years ago

Should handle Joi.string().regex() properly and return a string that matches the provided regex pattern.

This is not likely to be 100% coverage for all possible regex patterns, but basic support should at least be there.

Look at https://github.com/fent/randexp.js for implementation ideas.

dhinklexo commented 7 years ago

Potential library choice here may be https://github.com/fent/randexp.js or similar.

WesTyler commented 7 years ago

Yep! That's the one I'm considering. :D