mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2025-02-03 13:21:22 +01:00
Tolerate some identifiers. Should fix #1063
This commit is contained in:
parent
eb5c10d375
commit
b7606aece0
@ -447,7 +447,7 @@ public class InventoryPackets {
|
||||
case "WDL|REQUEST":
|
||||
return "wdl:request";
|
||||
default:
|
||||
return old.matches("[0-9a-z_-]+:[0-9a-z_/.-]+") // Identifier regex
|
||||
return old.matches("([0-9a-z_-]*:)?[0-9a-z_/.-]*") // Identifier regex
|
||||
? old
|
||||
: "viaversion:legacy/" + BaseEncoding.base32().lowerCase().withPadChar('-').encode(
|
||||
old.getBytes(StandardCharsets.UTF_8));
|
||||
|
Loading…
Reference in New Issue
Block a user