Skip to content

Commit 9694f25

Browse files
fularaBurntSushi
authored andcommitted
tests: added test for demoing capture names
See also: #399
1 parent ee89602 commit 9694f25

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/replace.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,6 @@ replace!(match_at_start_replace_with_empty, replace_all, r"foo", "foobar", t!(""
3939

4040
// See https://github.com/rust-lang/regex/issues/393
4141
replace!(single_empty_match, replace, r"^", "bar", t!("foo"), "foobar");
42+
43+
// See https://github.com/rust-lang/regex/issues/399
44+
replace!(capture_longest_possible_name, replace_all, r"(.)", "b", t!("${1}a $1a"), "ba ");

0 commit comments

Comments
 (0)