Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-26 02:50:06 +01:00
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) {
|
||||
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