Skip to content

Commit

Permalink
Use strict equality for sanitized value comparison
Browse files Browse the repository at this point in the history
Fixes gh-9.
  • Loading branch information
treyhunner committed Apr 30, 2013
1 parent 15b854d commit 469278b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jquery.formrestrict.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
var val = $this.val();
var sanitizedVal = sanitizationFunc(val);

if (val != sanitizedVal) {
if (val !== sanitizedVal) {
$this.val(sanitizedVal);
}
});
Expand Down

0 comments on commit 469278b

Please sign in to comment.