From 8b56d63fdeac529d13f115d7ac72f19dac0a7ba2 Mon Sep 17 00:00:00 2001 From: Al Date: Fri, 29 May 2015 19:42:05 -0400 Subject: [PATCH] [fix] only count non-set chars in parse_groups --- src/transliteration_table_builder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transliteration_table_builder.c b/src/transliteration_table_builder.c index 608bbe1a..881126f4 100644 --- a/src/transliteration_table_builder.c +++ b/src/transliteration_table_builder.c @@ -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++; }