Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat:upto→up to (#1808)
Andrew Dunbar3a9260cf8f3a
diff --git a/harper-core/src/linting/open_compounds.rs b/harper-core/src/linting/open_compounds.rsindex 2bc241084..d060da82f 100644--- a/harper-core/src/linting/open_compounds.rs+++ b/harper-core/src/linting/open_compounds.rs@@ -21,6 +21,7 @@ impl Default for OpenCompounds {"in case","in fact","in front",+ "up to",];let mut compound_to_phrase = HashMap::new();for phrase in phrases {@@ -428,4 +429,15 @@ mod tests {"Yes I do in fact exist :O",);}++ // up to++ #[test]+ fn correct_upto() {+ assert_suggestion_result(+ "Free for upto 10k subscribers, unlimited push notifications, in-browser messaging",+ OpenCompounds::default(),+ "Free for up to 10k subscribers, unlimited push notifications, in-browser messaging",+ );+ }}