diff --git a/src/main/java/net/hypr/doki/utils/DurationUtils.java b/src/main/java/net/hypr/doki/utils/DurationUtils.java index 3e91d3d..0c3b41c 100644 --- a/src/main/java/net/hypr/doki/utils/DurationUtils.java +++ b/src/main/java/net/hypr/doki/utils/DurationUtils.java @@ -7,7 +7,7 @@ import java.util.regex.Matcher; import java.util.regex.Pattern; public class DurationUtils { - private static final Pattern timePattern = Pattern.compile("(\\d+)(?:([dhms]))?"); + private static final Pattern timePattern = Pattern.compile("(\\d+)([dhms])?"); public static Duration parseDuration(String input) throws IllegalArgumentException { Matcher matcher = timePattern.matcher(input);