diff --git a/matching.go b/matching.go index 000c88c..0fc0cbe 100644 --- a/matching.go +++ b/matching.go @@ -47,7 +47,7 @@ func findAllMatchesHelper(start *State, str string, indices []matchIndex, offset startingFrom := i // Store starting index // Increment until we hit a character matching the start state (assuming not 0-state) if start.isEmpty == false { - for i < len(str) && int(str[i]) != start.content { + for i < len(str) && !start.content.contains(int(str[i])) { i++ } startIdx = i