From 37254d2e8e04c598db8a832f0918e0a2be8b71d1 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Mon, 1 Apr 2024 16:31:35 -0500 Subject: [PATCH] fix(dict): Don't correct OpenGraph's namespace Fixes #960 --- crates/typos-dict/assets/allowed.csv | 1 + crates/typos-dict/assets/words.csv | 1 - crates/typos-dict/src/word_codegen.rs | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/typos-dict/assets/allowed.csv b/crates/typos-dict/assets/allowed.csv index 812fa2f..3f6cfa4 100644 --- a/crates/typos-dict/assets/allowed.csv +++ b/crates/typos-dict/assets/allowed.csv @@ -22,3 +22,4 @@ shttp,also a protocol 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 diff --git a/crates/typos-dict/assets/words.csv b/crates/typos-dict/assets/words.csv index 5b24acd..5239504 100644 --- a/crates/typos-dict/assets/words.csv +++ b/crates/typos-dict/assets/words.csv @@ -40836,7 +40836,6 @@ oftenly,often ofter,after,offer,often oftern,often ofthen,often -og,of oganization,organization oger,ogre ogerish,ogreish diff --git a/crates/typos-dict/src/word_codegen.rs b/crates/typos-dict/src/word_codegen.rs index e26c04a..d34d604 100644 --- a/crates/typos-dict/src/word_codegen.rs +++ b/crates/typos-dict/src/word_codegen.rs @@ -82664,7 +82664,7 @@ pub static WORD_OH_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictg static WORD_OG_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen::DictTrieNode { children: dictgen::DictTrieChild::Flat(&WORD_OG_CHILDREN), - value: Some(&["of"]), + value: None, }; pub static WORD_OG_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictgen::DictTable {