Only remove first date match from ban reason.

This commit is contained in:
KHobbits 2014-06-14 16:27:34 +01:00
parent da6df89126
commit 27890e2b22

View File

@ -13,7 +13,7 @@ public class DateUtil
public static String removeTimePattern(String input) public static String removeTimePattern(String input)
{ {
return timePattern.matcher(input).replaceAll("").trim(); return timePattern.matcher(input).replaceFirst("").trim();
} }
public static long parseDateDiff(String time, boolean future) throws Exception public static long parseDateDiff(String time, boolean future) throws Exception