Skip to content

Commit

Permalink
fixed files form Closure #52
Browse files Browse the repository at this point in the history
  • Loading branch information
tdurieux committed Mar 7, 2017
1 parent b5f9e48 commit 8eab5d9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ static boolean isSimpleNumber(String s) {
return false;
}
}
return len > 0;
return len > 0 && s.charAt(0) != '0';
}

static double getSimpleNumber(String s) {
Expand Down

0 comments on commit 8eab5d9

Please sign in to comment.