Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
style(automation): use char-array pattern for filename trim
Richie McIlroy707fb860a9e1
diff --git a/crates/automation/src/lib.rs b/crates/automation/src/lib.rsindex e032fb164..51f5e3516 100644--- a/crates/automation/src/lib.rs+++ b/crates/automation/src/lib.rs@@ -443,7 +443,7 @@ pub fn sanitize_filename_component(value: &str) -> String {.collect();// Windows rejects filenames ending in a space or '.', so trim those after clamping the length.- let trimmed = sanitized.trim_end_matches(|c: char| c == ' ' || c == '.');+ let trimmed = sanitized.trim_end_matches([' ', '.']);if trimmed.is_empty() {"_".to_string()} else {