Skip to content
This repository was archived by the owner on Dec 12, 2021. It is now read-only.

Commit cccc345

Browse files
qoobaaansman
authored andcommitted
added missing 'var' to avoid leaking to the global namespace (#242)
1 parent c54cd8e commit cccc345

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

validate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@
530530
continue;
531531
}
532532

533-
name = input.name.replace(/\./g, "\\\\.");
533+
var name = input.name.replace(/\./g, "\\\\.");
534534
value = v.sanitizeFormValue(input.value, options);
535535
if (input.type === "number") {
536536
value = value ? +value : null;

0 commit comments

Comments
 (0)