From 0d21c08d513fc646dc18d011e1bab269080e8dd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Polanco=20Montiel?= Date: Sat, 27 Mar 2021 10:42:03 +0100 Subject: [PATCH] Updated docs --- README.md | 2 +- package.json | 4 ++-- src/index.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ca2ebcc..f05a3cf 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/package.json b/package.json index 6fd23a8..2aea0b9 100644 --- a/package.json +++ b/package.json @@ -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", @@ -57,5 +57,5 @@ "demo": "node ./index.js", "test": "tape ./test/*spec.js | tap-spec" }, - "version": "1.0.5" + "version": "1.0.6" } diff --git a/src/index.js b/src/index.js index 4d09c3d..7b92383 100644 --- a/src/index.js +++ b/src/index.js @@ -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,