mirror of
https://github.com/crate-ci/typos.git
synced 2026-12-02 00:57:47 +01:00
perf: Only do hex check if digits are in identifiers
This commit is contained in:
1 parent
a00831c847
commit
68cd36d0de
1 file changed
+1
-1
+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