Formatting

This commit is contained in:
Connor Johnstone
2026-03-18 15:36:42 -04:00
parent 3159ee51ad
commit a2152cbf8d
6 changed files with 55 additions and 34 deletions

View File

@@ -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("__") {