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
RegExp.make`${/()/}\1` returns /(?:())(?:)/ - The backreference was incorrectly removed.
RegExp.make`\1${/()/}()` returns /\1(?:())()/ - Should use \2 to maintain its reference to the same group in the top-level pattern and not be affected by the interpolated pattern (even though it always matches an empty string in this position).
The text was updated successfully, but these errors were encountered:
RegExp.make`${/()/}\1`
returns/(?:())(?:)/
- The backreference was incorrectly removed.RegExp.make`\1${/()/}()`
returns/\1(?:())()/
- Should use\2
to maintain its reference to the same group in the top-level pattern and not be affected by the interpolated pattern (even though it always matches an empty string in this position).The text was updated successfully, but these errors were encountered: