Skip to content

Commit 327e949

Browse files
committed
Add regression test.
Fixes BurntSushi#106.
1 parent 7708eb2 commit 327e949

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/gitignore.rs

+6
Original file line numberDiff line numberDiff line change
@@ -429,4 +429,10 @@ mod tests {
429429
not_ignored!(ignot11, ROOT, "#foo", "#foo");
430430
not_ignored!(ignot12, ROOT, "\n\n\n", "foo");
431431
not_ignored!(ignot13, ROOT, "foo/**", "foo", true);
432+
433+
// See: https://github.com/BurntSushi/ripgrep/issues/106
434+
#[test]
435+
fn regression_106() {
436+
Gitignore::from_str("/", " ").unwrap();
437+
}
432438
}

0 commit comments

Comments
 (0)