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 d9f5ae5 commit 170e5ba
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/liqp/filters/date/FuzzyDateParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,12 @@ protected String[] getMonthsNamesFromLocale(Locale locale) {
private static String[] withoutNulls(String[] shortMonths) {
return Arrays.stream(shortMonths)
.filter(month -> month != null && !month.isEmpty())
.map(el -> {
while (el.endsWith(".")) {
el = el.substring(0, el.length() - 1);
}
return el;
})
.toArray(String[]::new);
}
}
Expand Down

0 comments on commit 170e5ba

Please sign in to comment.