mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2024-09-06 10:26:22 +00: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 a new issue