Skip to content

Commit 515ccff

Browse files
committed
Add small test for prefiltered regex with lookbehind
1 parent 8d29519 commit 515ccff

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

testdata/lookaround.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,9 @@ matches = [
8484
[[1, 3], [1, 2], [2, 3]],
8585
[[5, 7], [5, 6], [6, 7]],
8686
]
87+
88+
[[test]]
89+
name = "lookbehind matching before the prefiltered start position"
90+
regex = "b(?<=ab)"
91+
haystack = "ab"
92+
matches = [[1, 2]]

0 commit comments

Comments
 (0)