瀏覽代碼

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}
 			n += 1
 		}
+		num_groups = n
 	}
 
 	return