[fix] only count non-set chars in parse_groups

This commit is contained in:
Al
2015-05-29 19:42:05 -04:00
parent a278cfd12c
commit 8b56d63fde

View File

@@ -181,7 +181,7 @@ group_capture_array *parse_groups(char *regex, size_t len) {
log_debug("close group\n");
in_group = false;
group_capture_array_push(groups, (group_capture_t){group_start, pos - group_start});
} else {
} else if (!in_set) {
log_debug("other char\n");
pos++;
}