mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-01 03:20:20 +02:00
no whitespace at the end of a filename
This commit is contained in:
@@ -474,7 +474,7 @@ public class Utils {
|
|||||||
* @return a filesystem safe string
|
* @return a filesystem safe string
|
||||||
*/
|
*/
|
||||||
public static String filesystemSafe(String text) {
|
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) {
|
if (text.length() > 100) {
|
||||||
text = text.substring(0, 99);
|
text = text.substring(0, 99);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user