mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-12-23 06:30:57 +00:00
I'm not sure why I did this, but I think I was trying to imitate the contract of [`std::path::Path::file_name`]: > Returns None if the path terminates in `..`. But the status quo clearly did not implement this. And as a result, if you have a glob that ends in a `.`, it was instead treated as the empty string (which only matches the empty string). We fix this by implementing the semantic from the standard library correctly. Fixes #2990 [`std::path::Path::file_name`]: https://doc.rust-lang.org/std/path/struct.Path.html#method.file_name |
||
|---|---|---|
| .. | ||
| data | ||
| binary.rs | ||
| feature.rs | ||
| hay.rs | ||
| json.rs | ||
| macros.rs | ||
| misc.rs | ||
| multiline.rs | ||
| regression.rs | ||
| tests.rs | ||
| util.rs | ||