Skip to content

Commit ebfadbe

Browse files
committed
Update escape.rs
1 parent a66f467 commit ebfadbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

regex-automata/src/util/escape.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ impl core::fmt::Debug for DebugByte {
3131
let mut len = 0;
3232
for (i, mut b) in core::ascii::escape_default(self.0).enumerate() {
3333
// capitalize \xab to \xAB
34-
if i >= 2 && (b'a'..=b'f').contains(&b) {
34+
if i >= 2 && b'a' <= b && b <= b'f' {
3535
b -= 32;
3636
}
3737
bytes[len] = b;

0 commit comments

Comments
 (0)