From a4920a2c7486427455e08d63b02577768a5afea8 Mon Sep 17 00:00:00 2001 From: connorhartley Date: Mon, 17 Aug 2020 00:20:39 +1200 Subject: [PATCH] Ensure normal keys that end with numbers dont get matched and replaced --- .../protocols/protocol1_12to1_11_1/ChatItemRewriter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_12to1_11_1/ChatItemRewriter.java b/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_12to1_11_1/ChatItemRewriter.java index 3f3963ea1..f74b2b5ed 100644 --- a/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_12to1_11_1/ChatItemRewriter.java +++ b/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_12to1_11_1/ChatItemRewriter.java @@ -9,7 +9,7 @@ import us.myles.ViaVersion.api.data.UserConnection; import java.util.regex.Pattern; public class ChatItemRewriter { - private static final Pattern indexRemoval = Pattern.compile("\\d+:(?=([^\"\\\\]*(\\\\.|\"([^\"\\\\]*\\\\.)*[^\"\\\\]*\"))*[^\"]*$)"); + private static final Pattern indexRemoval = Pattern.compile("(?