From a6a9d1e0fbacdd7eac857b0d2a369886847de4ec Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Tue, 9 Feb 2021 14:25:12 -0500 Subject: [PATCH] Forward slashes are allowed in channel IDs Fixes an issue where the Fabric registry sync packet would not be allowed by Velocity. --- .../api/proxy/messages/MinecraftChannelIdentifier.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/main/java/com/velocitypowered/api/proxy/messages/MinecraftChannelIdentifier.java b/api/src/main/java/com/velocitypowered/api/proxy/messages/MinecraftChannelIdentifier.java index 01a582035..2cb66007a 100644 --- a/api/src/main/java/com/velocitypowered/api/proxy/messages/MinecraftChannelIdentifier.java +++ b/api/src/main/java/com/velocitypowered/api/proxy/messages/MinecraftChannelIdentifier.java @@ -13,7 +13,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; */ public final class MinecraftChannelIdentifier implements ChannelIdentifier { - private static final Pattern VALID_IDENTIFIER_REGEX = Pattern.compile("[a-z0-9\\-_]*"); + private static final Pattern VALID_IDENTIFIER_REGEX = Pattern.compile("[a-z0-9/\\-_]*"); private final String namespace; private final String name;