Browse Source

fix: regex's match_with_preallocated_capture returning num_groups

Ycros 8 months ago
parent
commit
7edc46f1b9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      core/text/regex/regex.odin

+ 1 - 0
core/text/regex/regex.odin

@@ -381,6 +381,7 @@ match_with_preallocated_capture :: proc(
 			capture.pos[n] = {a, b}
 			capture.pos[n] = {a, b}
 			n += 1
 			n += 1
 		}
 		}
+		num_groups = n
 	}
 	}
 
 
 	return
 	return