mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-09-15 00:41:01 +03:00
@@ -368,8 +368,7 @@ mod tests {
|
|||||||
assert_eq!(
|
assert_eq!(
|
||||||
files
|
files
|
||||||
.iter()
|
.iter()
|
||||||
.filter(|f| normalize_path(&f.path)
|
.filter(|f| normalize_path(&f.path) == "data/flutter_assets/assets/icon.ico")
|
||||||
== "data/flutter_assets/assets/icon.ico")
|
|
||||||
.count(),
|
.count(),
|
||||||
1
|
1
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -85,7 +85,9 @@ fn previous_package_files(dir: &Path) -> Vec<String> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn normalized(path: &str) -> String {
|
fn normalized(path: &str) -> String {
|
||||||
path.replace('\\', "/").trim_start_matches("./").to_lowercase()
|
path.replace('\\', "/")
|
||||||
|
.trim_start_matches("./")
|
||||||
|
.to_lowercase()
|
||||||
}
|
}
|
||||||
|
|
||||||
// meta.toml is plain text in a user-writable directory, and it now drives deletion,
|
// meta.toml is plain text in a user-writable directory, and it now drives deletion,
|
||||||
|
|||||||
Reference in New Issue
Block a user