From ae09462bd482fd3a6fd60df0fcb332b2fc1dcd60 Mon Sep 17 00:00:00 2001 From: Aadhavan Srinivasan Date: Tue, 21 Jan 2025 22:19:37 -0500 Subject: [PATCH] Added important note --- compile.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compile.go b/compile.go index 7f43273..1161a58 100644 --- a/compile.go +++ b/compile.go @@ -681,7 +681,8 @@ func thompson(re []postfixNode) (Reg, error) { // Replace ESC_BACKSLASH with actual backslash, so that we can actually check if we encounter it replaceByValue([]int(state.content), int(ESC_BACKSLASH), '\\') - replaceByValue(state.except, ESC_BACKSLASH, '\\') + // Uncommenting this seems to make one of the test cases fail. Why? + // replaceByValue(state.except, ESC_BACKSLASH, '\\') nfa = append(nfa, &state) }