Pluginnames can also space out now
This commit is contained in:
parent
bb3e3325ad
commit
4d0acea6c9
@ -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…
x
Reference in New Issue
Block a user