mirror of
https://github.com/crate-ci/typos.git
synced 2026-10-17 09:35:11 +02:00
perf: Only do hex check if digits are in identifiers
This commit is contained in:
+1
-1
@@ -50,7 +50,7 @@ impl ParserBuilder {
|
||||
Parser {
|
||||
words_str,
|
||||
words_bytes,
|
||||
ignore_hex: self.ignore_hex,
|
||||
ignore_hex: self.ignore_hex && self.include_digits,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user