ignore: fix filtering when searching subdirectories

When searching subdirectories the path was not correctly built and
included duplicate parts. This fix will remove the duplicate part if
possible.

Fixes #1757, Closes #2295
This commit is contained in:
Thilo Uttendorfer
2022-08-29 22:32:29 +02:00
committed by Andrew Gallant
parent 2198bd92fa
commit cad1f5fae2
3 changed files with 38 additions and 1 deletions

View File

@@ -21,6 +21,8 @@ Feature enhancements:
Bug fixes:
* [BUG #1757](https://github.com/BurntSushi/ripgrep/issues/1757):
Fix bug when searching a sub-directory didn't have ignores applied correctly.
* [BUG #1891](https://github.com/BurntSushi/ripgrep/issues/1891):
Fix bug when using `-w` with a regex that can match the empty string.
* [BUG #1911](https://github.com/BurntSushi/ripgrep/issues/1911):