diff options
| author | Ycros <18012+ycros@users.noreply.github.com> | 2024-12-04 13:51:27 +1100 |
|---|---|---|
| committer | Ycros <18012+ycros@users.noreply.github.com> | 2024-12-04 13:51:27 +1100 |
| commit | 7edc46f1b945933ffd5dd41535e60a86b07d4539 (patch) | |
| tree | 1074bb5519e51e65ac2d6f5692cd16e10f31b1bf /core/text | |
| parent | 04e8dcc042365bc10742207c4be02841d9c0a9f2 (diff) | |
fix: regex's match_with_preallocated_capture returning num_groups
Diffstat (limited to 'core/text')
| -rw-r--r-- | core/text/regex/regex.odin | 1 |
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 |