Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
fix: no longer marks "repo" as incorrect
Elijah Potter7fe5f02bcbe5
diff --git a/harper-core/dictionary.dict b/harper-core/dictionary.dictindex 59982ebb5..21970c4bc 100644--- a/harper-core/dictionary.dict+++ b/harper-core/dictionary.dict@@ -39439,6 +39439,7 @@ reportorialreposefulrepositionrepository/SM+repo/SMreprehend/DGSreprehensibility/Mreprehensiblediff --git a/harper-core/src/linting/matcher.rs b/harper-core/src/linting/matcher.rsindex c506fd88d..9d27f7045 100644--- a/harper-core/src/linting/matcher.rs+++ b/harper-core/src/linting/matcher.rs@@ -118,8 +118,6 @@ impl Matcher {"deps" => "dependencies","off","the","cuff" => "off-the-cuff","an","in" => "and in",- "repo" => "repository",- "repos" => "repositories","my","self" => "myself","human","live" => "human life","eight","grade" => "eighth grade",diff --git a/harper-core/src/spell/hunspell/mod.rs b/harper-core/src/spell/hunspell/mod.rsindex ed7e4989d..92f1e3a73 100644--- a/harper-core/src/spell/hunspell/mod.rs+++ b/harper-core/src/spell/hunspell/mod.rs@@ -181,6 +181,15 @@ mod tests {assert!(build_expanded().contains_key(&split("deallocate")));}+ #[test]+ fn expanded_contains_repo() {+ let expanded = build_expanded();++ assert!(expanded.contains_key(&split("repo")));+ assert!(expanded.contains_key(&split("repos")));+ assert!(expanded.contains_key(&split("repo's")));+ }+fn split(text: &str) -> CharString {text.chars().collect()}