1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2024-12-12 19:18:24 +02:00
ripgrep/tests
Andrew Gallant aeaa5fc1b1
globset: fix repeated use of **
This fixes a bug where repeated use of ** didn't behave as it should. In
particular, each use of `**` added a new requirement directory depth
requirement. For example, something like `**/**/b` would match
`foo/bar/b`, but it wouldn't match `foo/b` even though it should. In
particular, `**` semantics demand "infinite" depth, so repeated uses of
`**` should just coalesce as if only one was given.

We do this coalescing in the parser. It's a little tricky because we
treat `**/a`, `a/**` and `a/**/b` as distinct tokens with their own
regex conversions. We also test the crap out of it.

Fixes #1174
2019-01-23 19:15:02 -05:00
..
data grep-cli: support Brotli/Zstd decompression 2019-01-22 20:56:16 -05:00
feature.rs edition: move core ripgrep to Rust 2018 2019-01-19 10:44:30 -05:00
hay.rs tests: re-tool integration tests 2018-08-20 07:10:19 -04:00
json.rs edition: move core ripgrep to Rust 2018 2019-01-19 10:44:30 -05:00
macros.rs edition: move core ripgrep to Rust 2018 2019-01-19 10:44:30 -05:00
misc.rs grep-cli: support Brotli/Zstd decompression 2019-01-22 20:56:16 -05:00
multiline.rs edition: move core ripgrep to Rust 2018 2019-01-19 10:44:30 -05:00
regression.rs globset: fix repeated use of ** 2019-01-23 19:15:02 -05:00
tests.rs edition: move core ripgrep to Rust 2018 2019-01-19 10:44:30 -05:00
util.rs tests: touch up tests on Windows 2018-08-21 23:05:52 -04:00