Fixed Kleene Star matching
This commit is contained in:
4
nfa.go
4
nfa.go
@@ -39,6 +39,6 @@ func verifyLastStatesHelper(state *State, visited map[*State]bool) {
|
||||
}
|
||||
|
||||
// verifyLastStates penables the 'isLast' flag for the leaf nodes (last states)
|
||||
func verifyLastStates(start []State) {
|
||||
verifyLastStatesHelper(&start[0], make(map[*State]bool))
|
||||
func verifyLastStates(start []*State) {
|
||||
verifyLastStatesHelper(start[0], make(map[*State]bool))
|
||||
}
|
||||
|
Reference in New Issue
Block a user