Extend valid characters to be a little less strict.

This commit is contained in:
KHobbits 2012-02-02 09:37:30 +00:00
parent 5c19e71858
commit 6e2ac3b56e

View File

@ -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)
{