We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7635ea6 commit 7b25607Copy full SHA for 7b25607
lib/validator.js
@@ -377,11 +377,11 @@ class Validator {
377
};
378
}
379
380
- p.slice(1).map((s) => {
+ p.slice(1).forEach((s) => {
381
const idx = s.indexOf(":");
382
if (idx !== -1) {
383
- const key = s.substr(0, idx).trim();
384
- let value = s.substr(idx + 1).trim();
+ const key = s.substring(0, idx).trim();
+ let value = s.substring(idx + 1).trim();
385
if (value === "true" || value === "false")
386
value = value === "true";
387
else if (!Number.isNaN(Number(value))) {
0 commit comments