We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d04019 commit df6e635Copy full SHA for df6e635
Tests/RegexTests/MatchTests.swift
@@ -1305,6 +1305,14 @@ extension RegexTests {
1305
firstMatchTest(#"(?xx)[ \t]+"#, input: " \t \t", match: "\t")
1306
1307
firstMatchTest("(?xx)[ a && ab ]+", input: " aaba ", match: "aa")
1308
+
1309
+ // Preserve whitespace in quoted section inside extended syntax region
1310
+ firstMatchTest(
1311
+ #"(?x) a b \Q c d \E e f"#, input: "ab c d ef", match: "ab c d ef")
1312
1313
+ #"(?x)[a b]+ _ [a\Q b\E]+"#, input: "aba_ a b a", match: "aba_ a b a")
1314
1315
+ #"(?x)[a b]+ _ [a\Q b\E]+"#, input: "aba _ a b a", match: nil)
1316
}
1317
1318
func testASCIIClasses() {
0 commit comments