toInt() filter is incorrectly closing the parseInt() function, thus not including the radix. #134

Closed
jeffreydwalter opened this Issue Dec 15, 2012 · 2 comments

Projects

None yet

2 participants

Filter.prototype.toInt = function(radix) {
    radix = radix || 10;
    this.modify(parseInt(this.str), radix);
    return this.str;
}

should be:

Filter.prototype.toInt = function(radix) {
    radix = radix || 10;
    this.modify(parseInt(this.str, radix));
    return this.str;
}

The above is in validator/validator.js and validator/validator-min.js. It's correct in lib/

Owner
chriso commented Dec 18, 2012

Thanks

@chriso chriso closed this in cb0bfdd Dec 18, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment