Filter out paths with misplaced colons
This commit is contained in:
parent
e097ad230c
commit
46caca47df
3 changed files with 12 additions and 70 deletions
|
@ -117,6 +117,11 @@ fn too_broad(path: &str) -> bool {
|
|||
return true;
|
||||
}
|
||||
|
||||
// Colon not for a drive letter
|
||||
if path.get(2..).is_some_and(|path| path.contains(':')) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// Root:
|
||||
if path == "/" {
|
||||
return true;
|
||||
|
|
Reference in a new issue