Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: Release 1.5
-
Fix Version/s: Release 1.5.1, Release 1.6
-
Component/s: Formatting, Validation
-
Labels:None
Description
From the users mailing list ...
In DateTypeConverter.java I see this:
public static final Pattern PRE_PROCESS_PATTERN =
Pattern.compile("(?<!GMT)\\s,-/\\.+");
That RE is almost certainly incorrect. The '-' in the character class
is acting as a character range metacharacter, not a bare hyphen. As it
happens, in ASCII the range between ',' and '/' is ',' '-' '.' '/', all
of which appear elsewhere in the character class, so it works by
accident - at least for ASCII.
The correct RE is "(?<!GMT)\\s,/\\.-+" Putting the '-' as the last
character means it is treated as a hyphen, not a character range
metacharacter.
–
Alan Burlison
–
Fixed as suggested