diff --git a/crates/typos-cli/tests/cmd/false-positives.toml b/crates/typos-cli/tests/cmd/false-positives.toml index be505e1..324f41d 100644 --- a/crates/typos-cli/tests/cmd/false-positives.toml +++ b/crates/typos-cli/tests/cmd/false-positives.toml @@ -1,12 +1,4 @@ bin.name = "typos" stdin = "" -stdout = """ -error: `SHTTP` should be `HTTPS` - --> ./README.md:9:1 - | -9 | SHTTP is a protocol - | ^^^^^ - | -""" +stdout = "" stderr = "" -status.code = 2 diff --git a/crates/typos-dict/assets/allowed.csv b/crates/typos-dict/assets/allowed.csv index 5203c58..77a19e7 100644 --- a/crates/typos-dict/assets/allowed.csv +++ b/crates/typos-dict/assets/allowed.csv @@ -18,3 +18,4 @@ contiguities,plural of contiguity bellow,valid word and not just a typo of `below` revered,valid word and not just a typoe of `reversed` recuse,valid word despite maybe being a typo of recurse +shttp,also a protocol diff --git a/crates/typos-dict/assets/words.csv b/crates/typos-dict/assets/words.csv index 5795e7a..066db40 100644 --- a/crates/typos-dict/assets/words.csv +++ b/crates/typos-dict/assets/words.csv @@ -52334,7 +52334,6 @@ shtopped,stopped,shopped shtoppes,stops,shops shtopping,stopping,shopping shtops,stops,shops -shttp,https shudown,shutdown shufle,shuffle shuld,should diff --git a/crates/typos-dict/src/word_codegen.rs b/crates/typos-dict/src/word_codegen.rs index 2691efe..1507042 100644 --- a/crates/typos-dict/src/word_codegen.rs +++ b/crates/typos-dict/src/word_codegen.rs @@ -37383,7 +37383,6 @@ pub static WORD_SHT_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dict dictgen::InsensitiveStr::Ascii("oppes"), dictgen::InsensitiveStr::Ascii("opping"), dictgen::InsensitiveStr::Ascii("ops"), - dictgen::InsensitiveStr::Ascii("tp"), ], values: &[ &["shitless"], @@ -37396,7 +37395,6 @@ pub static WORD_SHT_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dict &["stops", "shops"], &["stopping", "shopping"], &["stops", "shops"], - &["https"], ], range: 2..=6, };