From 68cd36d0de90226dbc9d31c2ce6d8bf6b69adb5c Mon Sep 17 00:00:00 2001 From: Ed Page Date: Fri, 1 Nov 2019 16:25:19 -0600 Subject: [PATCH] perf: Only do hex check if digits are in identifiers --- typos/src/tokens.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, } } }