Add '\n' to the list of illegal characters in filenames.

This commit is contained in:
Andrey Krutov 2013-12-09 01:02:09 +04:00
parent 91341ecdb0
commit 765c67629f
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ import java.util.Arrays;
public class FileNameGenerator {
private static final char[] ILLEGAL_CHARACTERS = { '/', '\\', '?', '%',
'*', ':', '|', '"', '<', '>' };
'*', ':', '|', '"', '<', '>', '\n' };
static {
Arrays.sort(ILLEGAL_CHARACTERS);
}