Closed rayshan closed 7 years ago
This isn't how the library works. 😄 You pass it an array of strings and it converts them to regular expressions.
If you feel the component should work differently, I'd be happy to review a PR. 😁 Otherwise I think it's fine as-is.
Hi, thanks so much for this library. I try to pass
[new RegExp(
\b(${myVariable})\b, 'i')]
tosearchWords
. It works fine but produces below warning: