Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Oct 20, 2025

Backport of #120856 to release/10.0

/cc @stephentoub @copilot

Customer Impact

  • Customer reported
  • Found internally

Balancing groups inside of negative lookarounds get removed erroneously, erroneously changing the behavior of those (rare but possible) regexes.

Regression

  • Yes
  • No

Last .NET 10 preview.

Testing

Additional unit tests added.

Risk

Low. The fix is adding an extra condition to the if guarding an optimization; it simply makes the optimization apply less often.

Copilot AI and others added 3 commits October 20, 2025 01:49
Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
@stephentoub stephentoub added the Servicing-consider Issue for next servicing release review label Oct 20, 2025
@stephentoub stephentoub added this to the 10.0.0 milestone Oct 20, 2025
@stephentoub stephentoub added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Oct 20, 2025
@stephentoub stephentoub requested a review from MihaZupan October 20, 2025 16:01
@stephentoub stephentoub requested a review from artl93 October 20, 2025 17:59
@artl93 artl93 merged commit e055281 into release/10.0 Oct 20, 2025
88 of 98 checks passed
@artl93
Copy link
Member

artl93 commented Oct 20, 2025

merging: Helix and OSX, per Toub.

@jkotas jkotas deleted the backport/pr-120856-to-release/10.0 branch October 24, 2025 03:31
@github-actions github-actions bot locked and limited conversation to collaborators Nov 23, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants