geforkt von Mirrors/FastAsyncWorldEdit
fix regex and remove forbidden windows characters (#2012)
refactor: fix regex and remove forbidden windows characters
Dieser Commit ist enthalten in:
Ursprung
0f558425f5
Commit
5e8bc5c2ad
@ -420,7 +420,7 @@ public final class WorldEdit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private boolean checkFilename(String filename) {
|
private boolean checkFilename(String filename) {
|
||||||
return filename.matches("^[A-Za-z0-9_\\- \\./\\\\'\\$@~!%\\^\\*\\(\\)\\[\\]\\+\\{\\},\\?]+\\.[A-Za-z0-9]+$");
|
return filename.matches("^[A-Za-z0-9_\\-./'$@~!%()\\[\\]+{},]+\\.[A-Za-z0-9]+$");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren