Преглед изворни кода

fix: regex's match_with_preallocated_capture returning num_groups

Ycros пре 8 месеци
родитељ
комит
7edc46f1b9
1 измењених фајлова са 1 додато и 0 уклоњено
  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}
 			n += 1
 		}
+		num_groups = n
 	}
 
 	return