File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Sources/_StringProcessing Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -386,7 +386,7 @@ fileprivate extension Compiler.ByteCodeGen {
386
386
builder. buildSave ( intercept)
387
387
try emitNode ( child)
388
388
builder. buildClearThrough ( intercept)
389
- builder. buildFail ( )
389
+ builder. buildFail ( preservingCaptures : true ) // Atomic group succeeds here
390
390
391
391
builder. label ( intercept)
392
392
builder. buildClear ( )
Original file line number Diff line number Diff line change @@ -1804,8 +1804,7 @@ extension RegexTests {
1804
1804
firstMatchTests (
1805
1805
#"(?>(\d+))\w+\1"# ,
1806
1806
( input: " 23x23 " , match: " 23x23 " ) ,
1807
- ( input: " 123x23 " , match: " 23x23 " ) ,
1808
- xfail: true )
1807
+ ( input: " 123x23 " , match: " 23x23 " ) )
1809
1808
1810
1809
// Backreferences in scalar mode
1811
1810
// In scalar mode the backreference should not match
You can’t perform that action at this time.
0 commit comments