Pluginnames can also space out now
By: Erik Broes <erikbroes@grum.nl>
This commit is contained in:
parent
07b4fca3ae
commit
39ceba6c4f
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue