Skip to content

Commit

Permalink
fix: regex's match_with_preallocated_capture returning num_groups
Browse files Browse the repository at this point in the history
  • Loading branch information
ycros committed Dec 4, 2024
1 parent 04e8dcc commit 7edc46f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/text/regex/regex.odin
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ match_with_preallocated_capture :: proc(
capture.pos[n] = {a, b}
n += 1
}
num_groups = n
}

return
Expand Down

0 comments on commit 7edc46f

Please sign in to comment.