Closed baseprime closed 10 years ago
Anyone? This is a one-line change and would extend validator functionality tremendously.
Could you include a test for this and I'll merge it in? Thanks
@powmedia Sorry for the late reply. I've included tests and also added options.flags
when creating the RegExp object from a string.
This would allow RegExp validator parse a string instead of requiring the value to be an instance of RegExp. Particularly useful if the schema is transmitted as a JSON object over AJAX for example.