Forward slashes are allowed in channel IDs

Fixes an issue where the Fabric registry sync packet would not be allowed by Velocity.
This commit is contained in:
Andrew Steinborn
2021-02-09 14:25:12 -05:00
parent 7e42c5b2e7
commit a6a9d1e0fb

View File

@@ -13,7 +13,7 @@ import org.checkerframework.checker.nullness.qual.Nullable;
*/ */
public final class MinecraftChannelIdentifier implements ChannelIdentifier { 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 namespace;
private final String name; private final String name;