Skip to content

Commit

Permalink
fix: fixes an issue with user dictionaries not being loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Richards committed Oct 28, 2020
1 parent b1f0fa1 commit 5c85a6d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ export function zxcvbn(
// reset the user inputs matcher on a per-request basis to keep things stateless
const sanitized_inputs: string[] = [];
for (const arg of user_inputs) {
if (typeof arg in ["string", "number", "boolean"]) {
sanitized_inputs.push(arg.toString().toLowerCase());
}
sanitized_inputs.push(arg.toString().toLowerCase());
}
set_user_input_dictionary(sanitized_inputs);

Expand Down

0 comments on commit 5c85a6d

Please sign in to comment.