mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-17 13:24:17 -07:00
Forgot we have windows to support as well
By: Erik Broes <erikbroes@grum.nl>
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user