Skip to content

Commit

Permalink
Fix Time Parser
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAbsolutionism committed Dec 30, 2024
1 parent bce37b2 commit e19a23d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/ch/njol/skript/util/Time.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public enum TimeState {
private int minute;
private TimeState timeState;

private static final Pattern DAY_TIME_PATTERN = Pattern.compile("(\\d?\\d)(:(\\d\\d))? ?(am|pm)?", Pattern.CASE_INSENSITIVE);
private static final Pattern DAY_TIME_PATTERN = Pattern.compile("(\\d?\\d)(:(\\d\\d))? ?(am|pm)", Pattern.CASE_INSENSITIVE);
private static final Pattern TIME_PATTERN = Pattern.compile("\\d?\\d:\\d\\d", Pattern.CASE_INSENSITIVE);

public Time() {
Expand Down

0 comments on commit e19a23d

Please sign in to comment.