1.0.0 • Published 3 years ago
query-to-regexp v1.0.0
query-to-regexp
query-to-regexp converts the user-input string to regexp.
Examples
const { toRegExp } = require('query-to-regexp');
const reg = toRegExp('Dog "Brown fox" -Cat');
console.log(reg.test('The quick brown fox jumps over the lazy dog'));
// => true
1.0.0
3 years ago