Skip to content

Commit

Permalink
fixed files form Lang #24
Browse files Browse the repository at this point in the history
  • Loading branch information
tdurieux committed Mar 7, 2017
1 parent e88aa61 commit 2e7684a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1410,7 +1410,7 @@ public static boolean isNumber(String str) {
if (chars[i] == 'l'
|| chars[i] == 'L') {
// not allowing L with an exponent or decimal point
return foundDigit && !hasExp;
return foundDigit && !hasExp && !hasDecPoint;
}
// last character is illegal
return false;
Expand Down

0 comments on commit 2e7684a

Please sign in to comment.