Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat: lmk→let me know (#3616)
Andrew Dunbarfb2f7c81396a
diff --git a/harper-core/default_config.json b/harper-core/default_config.jsonindex 182f1f6fe..1902cdaeb 100644--- a/harper-core/default_config.json+++ b/harper-core/default_config.json@@ -344,6 +344,13 @@"state": true,"label": "To Be Honest"}+ },+ {+ "Bool": {+ "name": "LetMeKnow",+ "state": true,+ "label": "Let Me Know"+ }}]}diff --git a/harper-core/src/linting/initialisms.rs b/harper-core/src/linting/initialisms.rsindex d9e7b25df..eb8431e64 100644--- a/harper-core/src/linting/initialisms.rs+++ b/harper-core/src/linting/initialisms.rs@@ -32,6 +32,7 @@ pub fn lint_group() -> LintGroup {"InMyHumbleOpinion" => ("imho", &["in my humble opinion", "in my honest opinion"]),"InMyOpinion" => ("imo", &["in my opinion"]),"InRealLife" => ("irl", &["in real life"]),+ "LetMeKnow" => ("lmk", &["let me know"]),"NeverMind" => ("nvm", &["never mind"]),"OhMyGod" => ("omg", &["oh my god"]),"PleaseTakeALook" => ("ptal", &["please take a look"]),@@ -230,4 +231,13 @@ mod tests {"if i understand correctly build caching in hol4 works at the file level",);}++ #[test]+ fn corrects_lmk() {+ assert_suggestion_result(+ "Lmk if you need any debug logs.",+ lint_group(),+ "Let me know if you need any debug logs.",+ );+ }}