Skip to content

Commit

Permalink
Removing wrong condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorge Plaza committed Aug 26, 2014
1 parent 3a80bec commit 2a58fd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion numeric/jquery.numeric.js
Expand Up @@ -257,7 +257,7 @@ $.fn.numeric.blur = function()
var callback = $.data(this, "numeric.callback");
var negative = $.data(this, "numeric.negative");
var val = this.value;
if(val !== "" && decimal)
if(val !== "")
{
var re = new RegExp(negative?"-?":"" + "^\\d+$|^\\d*" + decimal + "\\d+$");
if(!re.exec(val))
Expand Down

0 comments on commit 2a58fd0

Please sign in to comment.