diff --git a/crates/lib/src/lib.rs b/crates/lib/src/lib.rs index b86db057472..826bb3f6933 100644 --- a/crates/lib/src/lib.rs +++ b/crates/lib/src/lib.rs @@ -305,7 +305,7 @@ pub fn from_hex_pad, T: AsRef<[u8]>>( hex: T, ) -> Result { let hex = hex.as_ref(); - let hex = if hex.starts_with(b"0x") { + let hex = if hex.starts_with(b"0x") || hex.starts_with(b"\\x") { &hex[2..] } else if hex.starts_with(b"X'") { &hex[2..hex.len()]