From 36efbdfbaef47ecef19c5241e9499b8442c64e21 Mon Sep 17 00:00:00 2001 From: SoraSuegami Date: Sun, 8 Dec 2024 04:22:58 +0900 Subject: [PATCH] Fix double backslash error in the zk-regex compiler --- packages/compiler/src/regex.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/compiler/src/regex.rs b/packages/compiler/src/regex.rs index dffde5e..d3571b4 100644 --- a/packages/compiler/src/regex.rs +++ b/packages/compiler/src/regex.rs @@ -327,7 +327,7 @@ fn create_special_char_mappings() -> BTreeMap<&'static str, u8> { ("\\0", 0), ("\\\"", 34), ("\\'", 39), - ("\\", 92), + ("\\\\", 92), ("' '", 32), ] .iter()