Regex definitions should be able to be made with a regex object.
aykutkardas opened this issue · 1 comments
aykutkardas commented
There should be three ways to use regex.
- Using predefined regexes. ✅
"regex": "email",
- Define as an object. ✅
"regex": { "pattern": "\\d+", "flags": "g" },
- TODO: Define it as a regex object.
"regex": /\d+/g,
aykutkardas commented
Related commit: 15aafd5