Skip to content

Commit

Permalink
Updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Raúl Polanco Montiel committed Mar 27, 2021
1 parent 4d41403 commit 0d21c08
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ debug | `false` | Enable debug mode
minUpperChars | `1` | Minimum uppercase characters required `[A-Z]`.
minLowerChars | `1` | Minimum lowercase characters required `[a-z]`.
minNumberChars | `1` | Minimum numbers required `[0-9]`.
minSpecialChars | `1` | Minimum symbols required (any character not in `[a-zA-Z]`).
minSpecialChars | `1` | Minimum symbols required (any character not in `[a-zA-Z0-9]`).
minPasswordLength | `8` | Minimum password length required.
maxConsecutiveRepeatingChars | `2` | Maximum consecutive repeating characters allowed.
lang | *See below* | Object with multi-language strings.
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"#USER",
"/"
],
"_resolved": "https://registry.npmjs.org/pwd-strength/-/pwd-strength-1.0.5.tgz",
"_resolved": "https://registry.npmjs.org/pwd-strength/-/pwd-strength-1.0.6.tgz",
"_shasum": "1ccc118c7a90b02d22c3ae1815af237321e32878",
"_spec": "pwd-strength",
"_where": "C:\\nodejs\\pwd-strength",
Expand Down Expand Up @@ -57,5 +57,5 @@
"demo": "node ./index.js",
"test": "tape ./test/*spec.js | tap-spec"
},
"version": "1.0.5"
"version": "1.0.6"
}
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = function passwordStrength(value, options) {
minUpperChars: 1, // Upper characters ([A-Z])
minLowerChars: 1, // Lower characters ([a-z])
minNumberChars: 1, // Numbers ([0-9])
minSpecialChars: 1, // Symbols (any character not in [a-zA-Z])
minSpecialChars: 1, // Symbols (any character not in [a-zA-Z0-9])
minPasswordLength: 8, // Minimum password length
maxConsecutiveRepeatingChars: 2, // Maximum consecutive repeating characters
excess: 3,
Expand Down

0 comments on commit 0d21c08

Please sign in to comment.