mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-12 06:43:58 +01:00
Pluginnames can also space out now
By: Erik Broes <erikbroes@grum.nl>
This commit is contained in:
parent
07b4fca3ae
commit
39ceba6c4f
@ -133,7 +133,7 @@ public final class PluginDescriptionFile {
|
|||||||
try {
|
try {
|
||||||
name = map.get("name").toString();
|
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.");
|
throw new InvalidDescriptionException("name '" + name + "' contains invalid characters.");
|
||||||
}
|
}
|
||||||
} catch (NullPointerException ex) {
|
} catch (NullPointerException ex) {
|
||||||
|
Loading…
Reference in New Issue
Block a user