diff --git a/src/main/java/liqp/filters/date/fuzzy/Part.java b/src/main/java/liqp/filters/date/fuzzy/Part.java index 7b85ecc6..64e3c83a 100644 --- a/src/main/java/liqp/filters/date/fuzzy/Part.java +++ b/src/main/java/liqp/filters/date/fuzzy/Part.java @@ -80,6 +80,7 @@ public String toString() { } class PunctuationPart extends NewPart { + public static final String punctuationChars = "-:., /"; public PunctuationPart(int start, int end, String source) { super(start, end, source); } diff --git a/src/main/java/liqp/filters/date/fuzzy/PartRecognizer.java b/src/main/java/liqp/filters/date/fuzzy/PartRecognizer.java index e6f3f217..7b1599bc 100644 --- a/src/main/java/liqp/filters/date/fuzzy/PartRecognizer.java +++ b/src/main/java/liqp/filters/date/fuzzy/PartRecognizer.java @@ -1,5 +1,6 @@ package liqp.filters.date.fuzzy; +import static liqp.filters.date.fuzzy.Part.PunctuationPart.punctuationChars; import static liqp.filters.date.fuzzy.extractors.Extractors.allYMDPatternExtractor; import static liqp.filters.date.fuzzy.extractors.Extractors.fullWeekdaysExtractor; import static liqp.filters.date.fuzzy.extractors.Extractors.monthDateExtractor; @@ -21,8 +22,6 @@ public class PartRecognizer { - private static final String punctuationChars = "-:., /"; - List recognizePart(List parts, DatePatternRecognizingContext ctx) { if (notSet(ctx.weekDay)) {