Skip to content

Commit

Permalink
[WIP]
Browse files Browse the repository at this point in the history
  • Loading branch information
vkhrystiuk-ks committed Nov 30, 2024
1 parent 170e5ba commit 57380cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/liqp/filters/date/FuzzyDateParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,15 @@ private static String[] withoutNulls(String[] shortMonths) {
return Arrays.stream(shortMonths)
.filter(month -> month != null && !month.isEmpty())
.map(el -> {
// after jdk 9 it's normal (not counted as a bug)
// so here need to check version and work around
// https://bugs.openjdk.org/browse/JDK-8194289
while (el.endsWith(".")) {
el = el.substring(0, el.length() - 1);
}
return el;
})
.map(Pattern::quote)
.toArray(String[]::new);
}
}
Expand Down

0 comments on commit 57380cc

Please sign in to comment.