@carecard/validate 2.0.2 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/validate.js +1 -1
- package/package.json +1 -1
package/lib/validate.js
CHANGED
|
@@ -86,7 +86,7 @@ const isSimplePasswordStringFailureMessage = (password) => {
|
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
const isUsernameString = str => {
|
|
89
|
-
if (str === undefined || typeof str !== "string" || str.length === 0) return false;
|
|
89
|
+
if (str === undefined || typeof str !== "string" || str.length === 0 || str.length > 200) return false;
|
|
90
90
|
return (/^[0-9a-zA-Z]+$/.test(str));
|
|
91
91
|
}
|
|
92
92
|
|