mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-09 00:59:02 +03:00
fix: hide path by ext name (#126)
This commit is contained in:
@@ -39,7 +39,7 @@ pub fn glob(source: &str, target: &str) -> bool {
|
||||
continue 'outer;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
None => return true,
|
||||
},
|
||||
@@ -80,4 +80,7 @@ fn test_glob_key() {
|
||||
assert!(!glob("abc", "adc"));
|
||||
assert!(!glob("abc", "abcd"));
|
||||
assert!(!glob("a?c", "abbc"));
|
||||
assert!(!glob("*.log", "log"));
|
||||
assert!(glob("*.log", ".log"));
|
||||
assert!(glob("*.log", "a.log"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user