Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why s and n are removed in extended charset_type ? #175

Open
thiago-figueredo opened this issue Jan 20, 2024 · 0 comments
Open

Why s and n are removed in extended charset_type ? #175

thiago-figueredo opened this issue Jan 20, 2024 · 0 comments

Comments

@thiago-figueredo
Copy link

thiago-figueredo commented Jan 20, 2024

In cyclic_pattern_charset function, the s and n are removed in charset[1] and added in charset[2]. Why this happen ?

charset = []
charset += ["ABCDEFGHIJKLMNOPQRSTUVWXYZ"] # string.uppercase
charset += ["abcdefghijklmnopqrstuvwxyz"] # string.lowercase
charset += ["0123456789"] # string.digits

if not charset_type:
    charset_type = config.Option.get("pattern")
if charset_type == 1: # extended type
    charset[1] = "%$-;" + re.sub("[sn]", "", charset[1])
    charset[2] = "sn()" + charset[2]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant