* support date patterns like 2015-October-05 or 2015-Oct-05
This commit is contained in:
parent
55c07b667a
commit
192a7ef6c8
|
@ -126,7 +126,7 @@ public class DateMatcher {
|
||||||
|
|
||||||
private static class DateFormatPattern implements DatePattern {
|
private static class DateFormatPattern implements DatePattern {
|
||||||
|
|
||||||
protected final Pattern space = Pattern.compile("[\\p{Punct}\\p{Space}]+");
|
protected final Pattern space = Pattern.compile("[^\\p{Alnum}]+");
|
||||||
|
|
||||||
protected final Pattern pattern;
|
protected final Pattern pattern;
|
||||||
protected final String dateFormat;
|
protected final String dateFormat;
|
||||||
|
|
Loading…
Reference in New Issue