Fix issue with duplicated string in cyclic pattern

This commit is contained in:
Long Le 2016-03-09 08:09:03 +07:00
parent c9ceca70fb
commit 1bb9995fa3
1 changed files with 2 additions and 2 deletions

View File

@ -581,11 +581,11 @@ def cyclic_pattern_charset(charset_type=None):
charset_type = config.Option.get("pattern")
if charset_type == 1: # extended type
charset[1] = "%$-;" + charset[1]
charset[1] = "%$-;" + re.sub("[sn]", "", charset[1])
charset[2] = "sn()" + charset[2]
if charset_type == 2: # maximum type
charset += ['!"#$%&\()*+,-./:;<=>?@[\\]^_{|}~'] # string.punctuation
charset += ['!"#$%&\()*+,-./:;<=>?@[]^_{|}~'] # string.punctuation
mixed_charset = mixed = ''
k = 0