Formatting
This commit is contained in:
@@ -9,7 +9,9 @@ pub fn sanitize_component(s: &str) -> String {
|
||||
.collect();
|
||||
|
||||
// Trim leading/trailing dots and spaces (problematic on Windows and some Linux tools)
|
||||
result = result.trim_matches(|c: char| c == '.' || c == ' ').to_string();
|
||||
result = result
|
||||
.trim_matches(|c: char| c == '.' || c == ' ')
|
||||
.to_string();
|
||||
|
||||
// Collapse consecutive underscores
|
||||
while result.contains("__") {
|
||||
|
||||
Reference in New Issue
Block a user