Add '\n' to the list of illegal characters in filenames.
This commit is contained in:
parent
91341ecdb0
commit
765c67629f
|
@ -6,7 +6,7 @@ import java.util.Arrays;
|
||||||
public class FileNameGenerator {
|
public class FileNameGenerator {
|
||||||
|
|
||||||
private static final char[] ILLEGAL_CHARACTERS = { '/', '\\', '?', '%',
|
private static final char[] ILLEGAL_CHARACTERS = { '/', '\\', '?', '%',
|
||||||
'*', ':', '|', '"', '<', '>' };
|
'*', ':', '|', '"', '<', '>', '\n' };
|
||||||
static {
|
static {
|
||||||
Arrays.sort(ILLEGAL_CHARACTERS);
|
Arrays.sort(ILLEGAL_CHARACTERS);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue