mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-05-04 11:50:44 +00:00
Fix file slash replacement for linux systems not working
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user