1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-04-20 11:52:00 +02:00

no whitespace at the end of a filename

This commit is contained in:
soloturn 2022-04-15 18:11:23 +02:00
parent 015d35706c
commit 9a683538f7

View File

@ -474,7 +474,7 @@ public class Utils {
* @return a filesystem safe string
*/
public static String filesystemSafe(String text) {
text = text.replaceAll("[^a-zA-Z0-9-.,_ ]", "");
text = text.replaceAll("[^a-zA-Z0-9-.,_ ]", "").trim();
if (text.length() > 100) {
text = text.substring(0, 99);
}