Skip to content

Commit 2a8c3dc

Browse files
committed
Add test verifying issue #677
1 parent 8d2248d commit 2a8c3dc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Tests/RegexTests/MatchTests.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2952,4 +2952,11 @@ extension RegexTests {
29522952
}
29532953
}
29542954
}
2955+
2956+
func testIssue677() throws {
2957+
// Original report from https://github.com/swiftlang/swift-experimental-string-processing/issues/677
2958+
let regex = #/(?i)tests?/#
2959+
XCTAssertNotNil("testS".wholeMatch(of: regex))
2960+
XCTAssertNotNil("tesTs".wholeMatch(of: regex))
2961+
}
29552962
}

0 commit comments

Comments
 (0)