fix regext

This commit is contained in:
momo 2015-09-25 13:00:10 -04:00
parent eb0f20f9e0
commit 05489e629e

View File

@ -165,6 +165,6 @@ public class FileUtil {
public static String escapeFileName(String fileName) { public static String escapeFileName(String fileName) {
//for now escaping /:"*?<>| (not valid in file name, at least on Windows) //for now escaping /:"*?<>| (not valid in file name, at least on Windows)
//with underscores. We are only keeping \ as it could be part of the path. //with underscores. We are only keeping \ as it could be part of the path.
return fileName.replaceAll("[\\/:\"*?<>|]+", "_"); return fileName.replaceAll("[/:\"*?<>|]+", "_");
} }
} }