* trailing "..." in filenames are not allowed on windows so ake sure we sanitize that as well

This commit is contained in:
Reinhard Pointner 2013-05-24 05:05:35 +00:00
parent 7eb3157019
commit dbabcdcb7d
1 changed files with 1 additions and 1 deletions

View File

@ -458,7 +458,7 @@ public final class FileUtilities {
/**
* Invalid file name characters: \, /, :, *, ?, ", <, >, |, \r and \n
*/
public static final Pattern ILLEGAL_CHARACTERS = Pattern.compile("[\\\\/:*?\"<>|\\r\\n]");
public static final Pattern ILLEGAL_CHARACTERS = Pattern.compile("[\\\\/:*?\"<>|\\r\\n]|[.]+$");
/**