From ebe1ec4842a42213d7152b96135b7dd47ab97bc5 Mon Sep 17 00:00:00 2001 From: Kenichi Kamiya Date: Tue, 2 Apr 2024 13:31:24 +0900 Subject: [PATCH] fix(dict): Don't correct JST used in time zone abbreviations * chore(dict): `SNAPSHOTS=overwrite cargo test --workspace` --- crates/typos-dict/assets/allowed.csv | 1 + crates/typos-dict/assets/words.csv | 1 - crates/typos-dict/src/word_codegen.rs | 11 ++--------- 3 files changed, 3 insertions(+), 10 deletions(-) diff --git a/crates/typos-dict/assets/allowed.csv b/crates/typos-dict/assets/allowed.csv index 3f6cfa4..c49c206 100644 --- a/crates/typos-dict/assets/allowed.csv +++ b/crates/typos-dict/assets/allowed.csv @@ -23,3 +23,4 @@ foldr,short for fold-right eof,end-of-file in programming eol,end-of-line in programming og,OpenGraph which is used for previews of websites on social media +jst,abbreviation of Japan Standard Time in tz database diff --git a/crates/typos-dict/assets/words.csv b/crates/typos-dict/assets/words.csv index 5239504..f10cb18 100644 --- a/crates/typos-dict/assets/words.csv +++ b/crates/typos-dict/assets/words.csv @@ -34234,7 +34234,6 @@ joystik,joystick jpin,join jpng,png,jpg,jpeg jscipt,jscript -jst,just jstu,just jsut,just jsutification,justifications diff --git a/crates/typos-dict/src/word_codegen.rs b/crates/typos-dict/src/word_codegen.rs index d34d604..66373e3 100644 --- a/crates/typos-dict/src/word_codegen.rs +++ b/crates/typos-dict/src/word_codegen.rs @@ -104889,19 +104889,12 @@ static WORD_JS_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen::D pub static WORD_JS_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictgen::DictTable { keys: &[ dictgen::InsensitiveStr::Ascii("cipt"), - dictgen::InsensitiveStr::Ascii("t"), dictgen::InsensitiveStr::Ascii("tu"), dictgen::InsensitiveStr::Ascii("ut"), dictgen::InsensitiveStr::Ascii("utification"), ], - values: &[ - &["jscript"], - &["just"], - &["just"], - &["just"], - &["justifications"], - ], - range: 1..=11, + values: &[&["jscript"], &["just"], &["just"], &["justifications"]], + range: 2..=11, }; static WORD_JP_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen::DictTrieNode {