Skip to content

Commit 1bb9995

Browse files
committed
Fix issue with duplicated string in cyclic pattern
1 parent c9ceca7 commit 1bb9995

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -581,11 +581,11 @@ def cyclic_pattern_charset(charset_type=None):
581581
charset_type = config.Option.get("pattern")
582582

583583
if charset_type == 1: # extended type
584-
charset[1] = "%$-;" + charset[1]
584+
charset[1] = "%$-;" + re.sub("[sn]", "", charset[1])
585585
charset[2] = "sn()" + charset[2]
586586

587587
if charset_type == 2: # maximum type
588-
charset += ['!"#$%&\()*+,-./:;<=>?@[\\]^_{|}~'] # string.punctuation
588+
charset += ['!"#$%&\()*+,-./:;<=>?@[]^_{|}~'] # string.punctuation
589589

590590
mixed_charset = mixed = ''
591591
k = 0

0 commit comments

Comments
 (0)