mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-07 19:40:23 +01:00
Extend valid characters to be a little less strict.
This commit is contained in:
parent
5c19e71858
commit
6e2ac3b56e
@ -22,7 +22,7 @@ public class Util
|
||||
}
|
||||
private final static Logger logger = Logger.getLogger("Minecraft");
|
||||
private final static Pattern INVALIDFILECHARS = Pattern.compile("[^a-z0-9]");
|
||||
private final static Pattern INVALIDCHARS = Pattern.compile("[^\\p{Print}]");
|
||||
private final static Pattern INVALIDCHARS = Pattern.compile("[^\t\n\r\u0020-\u007E\u0085\u00A0-\uD7FF\uE000-\uFFFC]");;
|
||||
|
||||
public static String sanitizeFileName(final String name)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user