Skip to content

[6.4.x] Fix RegexBuilder nesting coalescing - #875

Merged
natecook1000 merged 1 commit into
release/6.4.xfrom
fix/6.4-dsl-trailing-quantifier
Sep 9, 2026
Merged

natecook1000 merged 1 commit into
release/6.4.xfrom
fix/6.4-dsl-trailing-quantifier

Conversation

@natecook1000

Copy link
Copy Markdown
Member

Cherry-picking #871 for the 6.4.x branch.


  • Explanation: When coalescing characters in nested regexes, the coalescing method continued further than necessary when patching up coalesced elements, causing an invalid representation of the initial pattern.
  • Scope: Affects the run-time regex compilation of DSL-built regexes.
  • Issue/Radar: rdar://179863654
  • Original PR: Fix RegexBuilder nesting coalescing #871
  • Risk: Low, adds a single early-exit return to an existing method.
  • Testing: Added additional unit test coverage.
  • Reviewer: @stephentyrone

When coalescing characters in nested regexes, the coalescing method
continued further than necessary when patching up coalesced elements,
causing an invalid representation of the initial pattern.

rdar://179863654
@natecook1000
natecook1000 merged commit 7581e7b into release/6.4.x Sep 9, 2026
23 checks passed
@natecook1000
natecook1000 deleted the fix/6.4-dsl-trailing-quantifier branch September 9, 2026 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants