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

fix(l33t): make sure all full subs use levenshtein #245

Merged
merged 1 commit into from
Jan 17, 2024

Conversation

alanpoulain
Copy link
Contributor

Not only the first entry is a full substitution.

This PR fixes this bug and also changes a little the helper in getCleanPasswords to be clearer (the next recursive index corresponds to the current index + the substitution length instead of i + 1, which corresponds to the same value but is not clear).

@MrWook MrWook added the enhancement New feature or request label Jan 3, 2024
@MrWook MrWook added this to the 4.0.0 milestone Jan 3, 2024
@MrWook MrWook merged commit 7bdf886 into zxcvbn-ts:master Jan 17, 2024
4 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants