Skip to content

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.dict
index 59982ebb5..21970c4bc 100644
--- a/harper-core/dictionary.dict
+++ b/harper-core/dictionary.dict
@@ -39439,6 +39439,7 @@ reportorial
reposeful
reposition
repository/SM
+repo/SM
reprehend/DGS
reprehensibility/M
reprehensible
diff --git a/harper-core/src/linting/matcher.rs b/harper-core/src/linting/matcher.rs
index 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.rs
index 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()
}