Added important note

This commit is contained in:
2025-01-21 22:19:37 -05:00
parent d210a85253
commit ae09462bd4

View File

@@ -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)
}