Explanation: This resolves an issue where matching a pattern that includes a capture group inside a positive lookahead or an atomic group results in a runtime error.
Scope: All the changes are internal implementation within the _StringProcessing module.
Issue: rdar://126009544
Original PR: #723
Risk: Low. There's no API or ABI impact of this change.
Testing: This change adds tests that verify that the previously failing patterns are working correctly, and continues to pass the existing compilation and pattern-matching tests.
Reviewer: @stephentyrone
Explanation: This resolves an issue where matching a pattern that includes a capture group inside a positive lookahead or an atomic group results in a runtime error. Scope: All the changes are internal implementation within the
_StringProcessing
module. Issue: rdar://126009544 Original PR: #723 Risk: Low. There's no API or ABI impact of this change. Testing: This change adds tests that verify that the previously failing patterns are working correctly, and continues to pass the existing compilation and pattern-matching tests. Reviewer: @stephentyroneCherry pick to
swift/release/6.0
of #723.