diff --git a/paper-api/src/main/java/org/bukkit/Registry.java b/paper-api/src/main/java/org/bukkit/Registry.java index 3e5d6fd08b..bb333b90e1 100644 --- a/paper-api/src/main/java/org/bukkit/Registry.java +++ b/paper-api/src/main/java/org/bukkit/Registry.java @@ -253,7 +253,7 @@ public interface Registry extends Iterable { default T match(@NotNull String input) { Preconditions.checkArgument(input != null, "input must not be null"); - String filtered = input.toLowerCase().replaceAll("\\s+", "_").replaceAll("\\W", ""); + String filtered = input.toLowerCase().replaceAll("\\s+", "_"); NamespacedKey namespacedKey = NamespacedKey.fromString(filtered); return (namespacedKey != null) ? get(namespacedKey) : null; }