Skip to content

Commit 68cd36d

Browse files
author
Ed Page
committed
perf: Only do hex check if digits are in identifiers
1 parent a00831c commit 68cd36d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

typos/src/tokens.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ impl ParserBuilder {
5050
Parser {
5151
words_str,
5252
words_bytes,
53-
ignore_hex: self.ignore_hex,
53+
ignore_hex: self.ignore_hex && self.include_digits,
5454
}
5555
}
5656
}

0 commit comments

Comments
 (0)