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
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>> {