Переглянути джерело

fix: regex's match_with_preallocated_capture returning num_groups

Ycros 10 місяців тому
батько
коміт
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}
 			capture.pos[n] = {a, b}
 			n += 1
 			n += 1
 		}
 		}
+		num_groups = n
 	}
 	}
 
 
 	return
 	return