mirror of https://github.com/astral-sh/ruff
Previously, we would always add `/{*filepath}` as our wildcard to match
descendant paths. But when the root is just `/` (as it can be in tests,
weird environments or in the ty playground), this causes a double `/`
and inhibits most descendant matches.
The regression test added in this commit fails without this fix.
Specifically, it panics because it can't find a file root for
`/project`.
Fixes #1277
|
||
|---|---|---|
| .. | ||
| diagnostic | ||
| files | ||
| system | ||
| vendored | ||
| display.rs | ||
| file_revision.rs | ||
| files.rs | ||
| lib.rs | ||
| panic.rs | ||
| parsed.rs | ||
| source.rs | ||
| system.rs | ||
| testing.rs | ||
| vendored.rs | ||