From ca8f8e103089b17070fcbcb969d870d9ca861fb3 Mon Sep 17 00:00:00 2001 From: Aadhavan Srinivasan Date: Thu, 30 Jan 2025 10:02:59 -0500 Subject: [PATCH] Renamed function --- regex/compile.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/regex/compile.go b/regex/compile.go index a28d114..82a35d9 100644 --- a/regex/compile.go +++ b/regex/compile.go @@ -989,7 +989,7 @@ func thompson(re []postfixNode) (Reg, error) { return &s }) // Reduce the list of states down to a single state by alternating them - toAdd := Reduce(states, func(s1 *State, s2 *State) *State { + toAdd := funcReduce(states, func(s1 *State, s2 *State) *State { return alternate(s1, s2) }) nfa = append(nfa, toAdd)