utils: strip interleaved CR and LF in chomp
Trimming "\n" then "\r" in sequence left "a\r\n\r" ending in a newline.

Assisted-by: Claude Opus 5.5 via Claude Code
change zvtvzkuvnwrslkqqsqwmstqmttkqykxo
commit 82e48d5308461c381217e8cd4a227e9d071df369
author Alpha Chen <alpha@kejadlen.dev>
date
parent qtzqlopn
diff --git a/frork-cli/src/utils.rs b/frork-cli/src/utils.rs
index c0ea184..30e221e 100644
--- a/frork-cli/src/utils.rs
+++ b/frork-cli/src/utils.rs
@@ -94,7 +94,7 @@ pub struct Utils;
 
 impl Utils {
     pub fn chomp(s: &str) -> String {
-        s.trim_end_matches('\n').trim_end_matches('\r').to_string()
+        s.trim_end_matches(['\n', '\r']).to_string()
     }
 
     pub fn dirname(path: &str) -> Result<Option<String>> {