* get rid of invalid trailing spaces as well when forcing valid filenames

This commit is contained in:
Reinhard Pointner 2013-05-30 20:30:38 +00:00
parent dbabcdcb7d
commit 6d46fbf314
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]|[. ]+$");
/**