rubick
rubick copied to clipboard
Fix regex match error
const regStr = '/abc-/gi';
const lists = [
{
type: 'regex',
match: regStr
}
]
console.log(searchKeyValues(lists, 'abc')) // should not match
console.log(searchKeyValues(lists, 'abc-')) // should match