Skip to content

Commit

Permalink
reorder checks
Browse files Browse the repository at this point in the history
  • Loading branch information
jpdahlke committed Apr 26, 2024
1 parent c92cfed commit 789f4e1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/emissary/util/FlexibleDateTimeParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,8 @@ private static String cleanDateString(final String date) {
}

// date strings over 100 characters are more than likely invalid
String cleanedDateString = StringUtils.substring(date, 0, 100);
String cleanedDateString = REMOVE.matcher(StringUtils.substring(date, 0, 100)).replaceAll(EMPTY);
cleanedDateString = REPLACE.matcher(cleanedDateString).replaceAll(SPACE);
cleanedDateString = REMOVE.matcher(cleanedDateString).replaceAll(EMPTY);
return StringUtils.trimToNull(cleanedDateString);
}

Expand Down

0 comments on commit 789f4e1

Please sign in to comment.