mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
修复NumberUtil
isNumber方法以L结尾没有小数点判断问题(issue#3938@Github)
This commit is contained in:
@@ -1266,7 +1266,7 @@ public class NumberUtil {
|
||||
}
|
||||
if (chars[i] == 'l' || chars[i] == 'L') {
|
||||
// not allowing L with an exponent
|
||||
return foundDigit && !hasExp;
|
||||
return foundDigit && !hasExp && !hasDecPoint;
|
||||
}
|
||||
// last character is illegal
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user