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 {
386386 builder. buildSave ( intercept)
387387 try emitNode ( child)
388388 builder. buildClearThrough ( intercept)
389- builder. buildFail ( )
389+ builder. buildFail ( preservingCaptures : true ) // Atomic group succeeds here
390390
391391 builder. label ( intercept)
392392 builder. buildClear ( )
Original file line number Diff line number Diff line change @@ -1804,8 +1804,7 @@ extension RegexTests {
18041804 firstMatchTests (
18051805 #"(?>(\d+))\w+\1"# ,
18061806 ( input: " 23x23 " , match: " 23x23 " ) ,
1807- ( input: " 123x23 " , match: " 23x23 " ) ,
1808- xfail: true )
1807+ ( input: " 123x23 " , match: " 23x23 " ) )
18091808
18101809 // Backreferences in scalar mode
18111810 // In scalar mode the backreference should not match
You can’t perform that action at this time.
0 commit comments