aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/text/regex/regex.odin1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/text/regex/regex.odin b/core/text/regex/regex.odin
index 3dc26b5c6..8f8efe252 100644
--- a/core/text/regex/regex.odin
+++ b/core/text/regex/regex.odin
@@ -381,6 +381,7 @@ match_with_preallocated_capture :: proc(
capture.pos[n] = {a, b}
n += 1
}
+ num_groups = n
}
return