Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.1, 3.3.2
-
None
Description
The strings "+2" and "+ 2" give a "False" result when tested by isNumber().
Case one, "+2" is legal with Integer.parseInt(). Case two: "+ 2" gives an exception with Integer.parseInt().
I believe the function should match legitimate inputs for the respective parser function depending on the number type.
Workaround: Use something like:
NumberUtils.isNumber( wrkStr.replaceFirst( "\\+", "") )