mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-15 04:05:50 -07:00
@@ -133,7 +133,7 @@ public final class PluginDescriptionFile {
|
||||
try {
|
||||
name = map.get("name").toString();
|
||||
|
||||
if (!name.matches("^[A-Za-z0-9_.-]+$")) {
|
||||
if (!name.matches("^[A-Za-z0-9 _.-]+$")) {
|
||||
throw new InvalidDescriptionException("name '" + name + "' contains invalid characters.");
|
||||
}
|
||||
} catch (NullPointerException ex) {
|
||||
|
Reference in New Issue
Block a user