mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-22 17:27:38 +00:00
fix regex and remove forbidden windows characters (#2012)
refactor: fix regex and remove forbidden windows characters
This commit is contained in:
parent
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]+$");
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user