Skip to content

Commit 6bfe83a

Browse files
committed
allow "-" in dependency names
1 parent 3933de3 commit 6bfe83a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/de/blazemcworld/jsscripts/ScriptManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public static void loadScripts() {
138138

139139
String preferredName = p.source().substring(p.source().lastIndexOf("/") + 1);
140140

141-
if (!preferredName.matches("^[\\w.]{3,50}$")) {
141+
if (!preferredName.matches("^[\\w.-]{3,50}$")) {
142142
preferredName = "dependency";
143143
}
144144
if (preferredName.endsWith(".js")) {

0 commit comments

Comments
 (0)