From 703851baa1f4a78d591aca40001215e3e8c936fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuba=20Ku=C5=BAma?= Date: Wed, 15 Nov 2017 21:30:48 +0100 Subject: [PATCH] added missing 'var' to avoid leaking to the global namespace --- validate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validate.js b/validate.js index d56af90..0704be4 100644 --- a/validate.js +++ b/validate.js @@ -530,7 +530,7 @@ continue; } - name = input.name.replace(/\./g, "\\\\."); + var name = input.name.replace(/\./g, "\\\\."); value = v.sanitizeFormValue(input.value, options); if (input.type === "number") { value = value ? +value : null;