* trailing "..." in filenames are not allowed on windows so ake sure we sanitize that as well
This commit is contained in:
parent
7eb3157019
commit
dbabcdcb7d
|
@ -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]|[.]+$");
|
||||
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue