Use contains function, since the content may have multiple characters

master
Aadhavan Srinivasan 2 months ago
parent 11073759e3
commit 4f2f14212c

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

Loading…
Cancel
Save