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:
parent
015d35706c
commit
9a683538f7
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user