Can the variable label be used inside a regex like this?
const label = 'test'
If I have the regex:
{ name: /test/i }
Is it possible to use the variable label
inside the regex, in the following way?
{ name: `/${label}/i` }
What do you think?