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`[\0${0}]` returns /[\00]/, which is equivalent to /\0/. The same problem occurs with other interpolated digits.
The correct output should allow it to match a literal '0', similar to how RegExp.make correctly guards against a preceding \0 when interpolating outside of a character class.
I have a working implementation of this in regex, which returns /[\u{0}0]/v.
The text was updated successfully, but these errors were encountered:
RegExp.make`[\0${0}]`
returns/[\00]/
, which is equivalent to/\0/
. The same problem occurs with other interpolated digits.The correct output should allow it to match a literal
'0'
, similar to howRegExp.make
correctly guards against a preceding\0
when interpolating outside of a character class.I have a working implementation of this in
regex
, which returns/[\u{0}0]/v
.The text was updated successfully, but these errors were encountered: