We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a66f467 commit ebfadbeCopy full SHA for ebfadbe
regex-automata/src/util/escape.rs
@@ -31,7 +31,7 @@ impl core::fmt::Debug for DebugByte {
31
let mut len = 0;
32
for (i, mut b) in core::ascii::escape_default(self.0).enumerate() {
33
// capitalize \xab to \xAB
34
- if i >= 2 && (b'a'..=b'f').contains(&b) {
+ if i >= 2 && b'a' <= b && b <= b'f' {
35
b -= 32;
36
}
37
bytes[len] = b;
0 commit comments