Skip to content

Conversation

@stephentoub
Copy link
Member

No description provided.

@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-system-text-regularexpressions
See info in area-owners.md if you want to be subscribed.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves code quality by replacing a manual for-loop with the built-in Array.Copy method in the Match.AddMatch method. The change enhances both readability and performance by using a well-optimized framework method for copying array elements.

Key Changes:

  • Replaced manual element-by-element array copy loop with Array.Copy call in Match.AddMatch

@stephentoub stephentoub enabled auto-merge (squash) January 5, 2026 21:09
@stephentoub stephentoub merged commit ee72dc8 into dotnet:main Jan 5, 2026
89 of 94 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants