From 1dd01de4931815bfca88cd9ce2c6d19349e9fa52 Mon Sep 17 00:00:00 2001 From: lukeselesti <60427623+lukeselesti@users.noreply.github.com> Date: Thu, 19 Mar 2020 18:22:06 +0000 Subject: [PATCH] Fix Validator._replaceWildCards (#359) --- src/validator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }