This commit is contained in:
Bel LaPointe
2024-01-03 08:22:15 -07:00
parent ec47d8142a
commit 8b5c18e65e
3 changed files with 4 additions and 2 deletions

View File

@@ -99,6 +99,7 @@ impl Destutterer {
let next_words = Words::from_string(next.clone());
let mut n = self.prev.to_comparable_words().len().clamp(0, next_words.to_comparable_words().len());
//println!("n={} prev='{:?}' next='{:?}'", n, self.prev.to_comparable_words(), next_words.to_comparable_words());
while n > 0 {
let (prev_s, _) = self.prev.last_n_comparable_to_string(n);
let (next_s, next_idx) = next_words.first_n_comparable_to_string(n);