Fix file slash replacement for linux systems not working

This commit is contained in:
crschnick
2025-05-11 10:03:57 +00:00
parent d88946e7c1
commit 66bf35ba2d
@@ -87,7 +87,7 @@ public interface OsType {
@Override
public String makeFileSystemCompatible(String name) {
// Technically the backslash is supported, but it causes all kinds of troubles, so we also exclude it
return name.replaceAll("/\\\\", "_").replaceAll("\0", "");
return name.replaceAll("[/\\\\]", "_").replaceAll("\0", "");
}
@Override