diff --git a/src/validator.js b/src/validator.js index 6ef2027f..be104140 100755 --- a/src/validator.js +++ b/src/validator.js @@ -296,7 +296,7 @@ Validator.prototype = { if(Array.isArray(path2)){ path2 = path2[0]; } - pos = path2.indexOf('*'); + const pos = path2.indexOf('*'); if (pos === -1) { return path2; }