Skip to content

Simplify/fix loop descriptions in regex source generator #118341

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 4, 2025

Conversation

stephentoub
Copy link
Member

@stephentoub stephentoub commented Aug 4, 2025

  • There's no need to say "greedily and atomically"... "atomically" covers it.
  • "lazily and atomically" doesn't make sense... "lazily" covers it.

This only affects emitted comments.

- There's no need to say "greedily and atomically"... "atomically" covers it.
- "lazily and atomically" doesn't make sense... "lazily" covers it.
Copy link
Contributor

@Copilot 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 simplifies loop descriptions in the regex source generator by removing redundant qualifiers and fixing logical inconsistencies in the description strings.

  • Removes redundant "greedily and atomically" description, keeping just "atomically" since atomic matching inherently covers greedy behavior
  • Fixes illogical "lazily and atomically" description, keeping just "lazily" since lazy matching is incompatible with atomic matching
  • Consolidates the default case to simply return "lazily" with a clarifying comment

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.

@stephentoub stephentoub enabled auto-merge (squash) August 4, 2025 15:23
@MihaZupan
Copy link
Member

/ba-g The error is #105177, the PR that closed it was merged after the build on this PR started

@stephentoub stephentoub merged commit bed7000 into dotnet:main Aug 4, 2025
87 of 89 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