Fixed last commit
Fixed last commit. Which consisted in removing trailing spaces in filenames, as they are not supported in FAT filesystem.
This commit is contained in:
parent
1e58e41ba7
commit
5c794ce099
@ -24,10 +24,10 @@ public class FileNameGenerator {
|
||||
for (int i = 0; i < string.length(); i++) {
|
||||
char c = string.charAt(i);
|
||||
if (Arrays.binarySearch(ILLEGAL_CHARACTERS, c) < 0) {
|
||||
builder.append(c).replaceFirst(" *$","");
|
||||
builder.append(c);
|
||||
}
|
||||
}
|
||||
return builder.toString();
|
||||
return builder.toString().replaceFirst(" *$","");
|
||||
}
|
||||
|
||||
public static long generateLong(final String str) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user