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:
LatinSuD 2013-03-24 18:18:35 +01:00
parent 1e58e41ba7
commit 5c794ce099

View File

@ -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) {