wopehq/muninn

Regex definitions should be able to be made with a regex object.

aykutkardas opened this issue · 1 comments

There should be three ways to use regex.

  1. Using predefined regexes. ✅
"regex": "email",
  1. Define as an object. ✅
"regex": { "pattern": "\\d+", "flags": "g" },
  1. TODO: Define it as a regex object.
"regex": /\d+/g,

Related commit: 15aafd5