voll icon indicating copy to clipboard operation
voll copied to clipboard

Support Regex

Open Kikobeats opened this issue 8 years ago • 0 comments

Explore if could be possible handle regex expressions.

const test = voll('r[ae]d')
const output = test('red')
console.log(output) // => true 

The strategy here is:

  • Detect is the input text is a regex. Related: https://github.com/ljharb/is-regex
  • If is a regex, calculate all the possibilities

Kikobeats avatar Feb 14 '17 16:02 Kikobeats