From 37d4d626b67cdddd8da174614d7e5d25d7acb4b7 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Mon, 26 Jun 2023 08:48:57 -0500 Subject: [PATCH] fix(dict): Dont correct currency code Fixes #767 --- crates/typos-dict/assets/allowed.csv | 1 + crates/typos-dict/assets/words.csv | 1 - crates/typos-dict/src/dict_codegen.rs | 5 ++--- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/crates/typos-dict/assets/allowed.csv b/crates/typos-dict/assets/allowed.csv index 2a36a0b..f3be7b9 100644 --- a/crates/typos-dict/assets/allowed.csv +++ b/crates/typos-dict/assets/allowed.csv @@ -6,3 +6,4 @@ deques,noun dequeues,verb ons,so `add-ons` works accreting,verb of accrete +zar,currency code for the South African rand diff --git a/crates/typos-dict/assets/words.csv b/crates/typos-dict/assets/words.csv index ba9a5f7..b94e28c 100644 --- a/crates/typos-dict/assets/words.csv +++ b/crates/typos-dict/assets/words.csv @@ -63006,7 +63006,6 @@ yuo,you yuor,your yur,your zaelots,zealots -zar,czar zars,czars zealotes,zealots zealoths,zealots diff --git a/crates/typos-dict/src/dict_codegen.rs b/crates/typos-dict/src/dict_codegen.rs index 883377a..cb75d32 100644 --- a/crates/typos-dict/src/dict_codegen.rs +++ b/crates/typos-dict/src/dict_codegen.rs @@ -308,11 +308,10 @@ static WORD_ZA_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen::D pub static WORD_ZA_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictgen::DictTable { keys: &[ dictgen::InsensitiveStr::Ascii("elots"), - dictgen::InsensitiveStr::Ascii("r"), dictgen::InsensitiveStr::Ascii("rs"), ], - values: &[&["zealots"], &["czar"], &["czars"]], - range: 1..=5, + values: &[&["zealots"], &["czars"]], + range: 2..=5, }; static WORD_Y_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen::DictTrieNode {