Skip to content

Commit

Permalink
Realized better fix the second I pushed the last change
Browse files Browse the repository at this point in the history
  • Loading branch information
jmeaster30 committed Apr 18, 2023
1 parent 90c89ed commit 70658ae
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion libvore/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -446,10 +446,15 @@ func compare(a string, b string, caseless bool) bool {
func (es *SearchEngineState) MATCH(value string, not bool, caseless bool) {
comp := es.READ(len(value))

if len(comp) == 0 {
es.BACKTRACK()
return
}

if !not && compare(value, comp, caseless) {
es.CONSUME(len(value))
es.NEXT()
} else if not && !compare(value, comp, caseless) && len(comp) > 0 {
} else if not && !compare(value, comp, caseless) {
es.CONSUME(len(value))
es.NEXT()
} else {
Expand Down

0 comments on commit 70658ae

Please sign in to comment.