Skip to content

Commit

Permalink
Corrected regex to exclude Hours, Seconds, Minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
vamsimanohar committed Mar 4, 2022
1 parent d678648 commit e48d9e3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ interface DateTimeFormatHandler {

private static final Pattern pattern = Pattern.compile("%.");
private static final Pattern CHARACTERS_WITH_NO_MOD_LITERAL_BEHIND_PATTERN
= Pattern.compile("(?<!%)[a-zA-Z&&[^ydmsMYDS]]+");
= Pattern.compile("(?<!%)[a-zA-Z&&[^ydmshiHIMYDS]]+");
private static final String MOD_LITERAL = "%";

private DateTimeFormatterUtil() {
Expand Down

0 comments on commit e48d9e3

Please sign in to comment.