diff --git a/typos/src/tokens.rs b/typos/src/tokens.rs index fa2c755..883f1a5 100644 --- a/typos/src/tokens.rs +++ b/typos/src/tokens.rs @@ -50,7 +50,7 @@ impl ParserBuilder { Parser { words_str, words_bytes, - ignore_hex: self.ignore_hex, + ignore_hex: self.ignore_hex && self.include_digits, } } }