diff --git a/src/internal/clean.rs b/src/internal/clean.rs index 46ffe23..5df6056 100644 --- a/src/internal/clean.rs +++ b/src/internal/clean.rs @@ -1,7 +1,7 @@ use regex::Regex; pub fn clean(a: &[String], verbosity: i32) -> Vec { - let r = Regex::new(r"(\S+)((?:>=|<=|>|<|=>|=<)\S+$)").unwrap(); + let r = Regex::new(r"(\S+)((?:>=|<=|>|<)\S+$)").unwrap(); let mut cleaned: Vec = vec![]; @@ -14,8 +14,21 @@ pub fn clean(a: &[String], verbosity: i32) -> Vec { } } - if verbosity >= 1 { - eprintln!("Cleaned {:?}\nInto: {:?}", a, cleaned); + match verbosity { + 0 => {} + 1 => { + eprintln!("Cleaned: {:?}\nInto: {:?}", a, cleaned); + } + _ => { + eprintln!("Cleaned:"); + for b in a { + eprintln!("{}", b); + } + eprintln!("Into:"); + for c in &cleaned { + eprintln!("{}", c); + } + } } cleaned diff --git a/src/internal/sort.rs b/src/internal/sort.rs index 29ab902..4b87157 100644 --- a/src/internal/sort.rs +++ b/src/internal/sort.rs @@ -18,7 +18,7 @@ pub fn sort(input: &[String], verbosity: i32) -> structs::Sorted { _ => { eprintln!("Sorting:"); for b in &a { - eprintln!("{:?}", b); + eprintln!("{}", b); } } }