From 2e5ea3a316982c2324ba8ac7be8a1ed7f2358f4b Mon Sep 17 00:00:00 2001 From: Ed Page Date: Tue, 23 Apr 2024 14:35:59 -0500 Subject: [PATCH] fix(dict): Don't correct the doas command Fixes #1003 --- crates/typos-dict/assets/allowed.csv | 1 + crates/typos-dict/assets/words.csv | 1 - crates/typos-dict/src/word_codegen.rs | 4 +--- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/crates/typos-dict/assets/allowed.csv b/crates/typos-dict/assets/allowed.csv index 2ada2dc..f72c8f6 100644 --- a/crates/typos-dict/assets/allowed.csv +++ b/crates/typos-dict/assets/allowed.csv @@ -38,3 +38,4 @@ ans,abbreviation for answer automations,while automation is uncountable there are cases where automations works like with iPhone automations inout,keyword in many languages but used in many more kms,common enough acronym for Key Management Service +doas,built-in OpenBSD alternative to sudo (and has been ported to other systems) diff --git a/crates/typos-dict/assets/words.csv b/crates/typos-dict/assets/words.csv index f285d72..2155c03 100644 --- a/crates/typos-dict/assets/words.csv +++ b/crates/typos-dict/assets/words.csv @@ -20417,7 +20417,6 @@ doamin,domain,dopamine doamine,dopamine,domain doamins,domains doapmine,dopamine -doas,does doble,double dobled,doubled dobles,doubles diff --git a/crates/typos-dict/src/word_codegen.rs b/crates/typos-dict/src/word_codegen.rs index 5c39fba..47d2602 100644 --- a/crates/typos-dict/src/word_codegen.rs +++ b/crates/typos-dict/src/word_codegen.rs @@ -150892,7 +150892,6 @@ pub static WORD_DOA_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dict dictgen::InsensitiveStr::Ascii("mine"), dictgen::InsensitiveStr::Ascii("mins"), dictgen::InsensitiveStr::Ascii("pmine"), - dictgen::InsensitiveStr::Ascii("s"), ], values: &[ &["diagonal"], @@ -150902,9 +150901,8 @@ pub static WORD_DOA_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dict &["dopamine", "domain"], &["domains"], &["dopamine"], - &["does"], ], - range: 1..=6, + range: 3..=6, }; static WORD_DN_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen::DictTrieNode {