You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d268774
Browse filesBrowse the repository at this point in the historyBrowse files
Align date pattern to regex conversion with DateTimeFormatter
CachingDateFormatter formats dates with DateTimeFormatter, but the
regex conversion and its documentation still assumed SimpleDateFormat.
- support the 'L' (stand-alone month) pattern letter in
CharSequenceToRegexMapper
- add DatePatternToRegexUtil(String, Locale) so that symbols can be
taken from a locale other than the default one
- FileNamePattern.toRegexForFixedDate(Date) now delegates to the
Instant overload
- add DatePatternToRegexUtilTest, checking that dates formatted in
16 locales match their regex
- check the regex against DateTimeFormatter output in
DatePatternToRegexTest
Signed-off-by: ceki <[email protected]>
0 commit comments