Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
fix(core): address edge-case from #744
Elijah Potter008721498971
diff --git a/harper-core/src/linting/then_than.rs b/harper-core/src/linting/then_than.rsindex e8b4760b2..77165a929 100644--- a/harper-core/src/linting/then_than.rs+++ b/harper-core/src/linting/then_than.rs@@ -26,7 +26,7 @@ impl ThenThan {.then(Invert::new(AnyCapitalization::new(char_string!("that")))),),// Denotes exceptions to the rule.- Box::new(Invert::new(WordSet::new(&["back", "this"]))),+ Box::new(Invert::new(WordSet::new(&["back", "this", "so"]))),])),}}@@ -191,4 +191,13 @@ mod tests {0,);}++ #[test]+ fn allows_issue_744() {+ assert_lint_count(+ "So then after talking about how he would, he didn't.",+ ThenThan::default(),+ 0,+ );+ }}