Open leaysgur opened 2 months ago
Done in #6847 , but there is room for performance improvement.
I'd like to take a stab at this!
@preyneyv You may continue with https://github.com/oxc-project/oxc/pull/6847
Done in #6847 , but there is room for performance improvement.
Original issue
> https://github.com/tc39/proposal-duplicate-named-capturing-groups Spec text is not updated yet, ongoing PR may be helpful. 👉🏻 https://github.com/tc39/ecma262/pull/2721 For now, `/(?.)(?.)/` is invalid syntax, name `a` is duplicated. With this change, we can use the same name if they are splitted by `|` and in the same `Disjunction` like `/(?.)|(?.)/`. But it still not allowed in some cases like `/(?