[transliteration] Not counting repeat character in group capture

This commit is contained in:
Al
2015-05-28 19:36:25 -04:00
parent 0177fd4b13
commit a9d5b91ac0
2 changed files with 3 additions and 3 deletions

View File

@@ -679,7 +679,7 @@ def char_permutations(s, current_filter=all_chars):
last_token_group_start = True
elif token_type == CLOSE_GROUP:
in_group = False
end_group = len(char_types)
end_group = len([c for c in char_types if c[0] != REPEAT_CHAR])
groups.append((start_group, end_group))
elif token_type == OPEN_SET:
open_brackets += 1