From 7edc46f1b945933ffd5dd41535e60a86b07d4539 Mon Sep 17 00:00:00 2001 From: Ycros <18012+ycros@users.noreply.github.com> Date: Wed, 4 Dec 2024 13:51:27 +1100 Subject: [PATCH] fix: regex's match_with_preallocated_capture returning num_groups --- core/text/regex/regex.odin | 1 + 1 file changed, 1 insertion(+) 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