You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's bug #192 that's been there since the introduction of XRegExp.tag, and which prevents interpolating regexes inside character classes. Two potential paths forward are mentioned in that issue:
Making interpolation into a character class a syntax error (to avoid unexpected surprises like breaking out of a character class with an unescaped ], or the meaning of regex symbols changing in character class context).
Matching probably most users' preferences by allowing it in the way you're expecting here (possibly with some level of protection).
I have the following:
Why does the interpolation ${baseRegex} results in {{subpattern0}}. From previous discussions, it should not.
The text was updated successfully, but these errors were encountered: