summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorErik Broes <erikbroes@grum.nl>2011-04-03 16:42:33 +0200
committerErik Broes <erikbroes@grum.nl>2011-04-03 16:42:33 +0200
commitbb3e3325ad31bc0d9154ac141443a8c43edab4c6 (patch)
tree1ff2b26496d50f7911419c7090ed591a937d9a4e /src
parentd2d7ea50eb10085ba945deb4a46a9e0adebb2ec1 (diff)
downloadbukkit-bb3e3325ad31bc0d9154ac141443a8c43edab4c6.tar
bukkit-bb3e3325ad31bc0d9154ac141443a8c43edab4c6.tar.gz
bukkit-bb3e3325ad31bc0d9154ac141443a8c43edab4c6.tar.lz
bukkit-bb3e3325ad31bc0d9154ac141443a8c43edab4c6.tar.xz
bukkit-bb3e3325ad31bc0d9154ac141443a8c43edab4c6.zip
Forgot we have windows to support as well
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/bukkit/plugin/PluginDescriptionFile.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/plugin/PluginDescriptionFile.java b/src/main/java/org/bukkit/plugin/PluginDescriptionFile.java
index 4acc7129..8e42311a 100644
--- a/src/main/java/org/bukkit/plugin/PluginDescriptionFile.java
+++ b/src/main/java/org/bukkit/plugin/PluginDescriptionFile.java
@@ -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) {