From 27890e2b22dfbd6b731200e97a8c4cfe86c8dbf5 Mon Sep 17 00:00:00 2001 From: KHobbits Date: Sat, 14 Jun 2014 16:27:34 +0100 Subject: [PATCH] Only remove first date match from ban reason. --- Essentials/src/com/earth2me/essentials/utils/DateUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Essentials/src/com/earth2me/essentials/utils/DateUtil.java b/Essentials/src/com/earth2me/essentials/utils/DateUtil.java index 804a1cda6..77a374f88 100644 --- a/Essentials/src/com/earth2me/essentials/utils/DateUtil.java +++ b/Essentials/src/com/earth2me/essentials/utils/DateUtil.java @@ -13,7 +13,7 @@ public class DateUtil 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