Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-09-06 16:12:51 +02: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) {
|
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