From 66bf35ba2d88896ee8426ac2d8b38ff793404d8d Mon Sep 17 00:00:00 2001 From: crschnick Date: Sun, 11 May 2025 10:03:57 +0000 Subject: [PATCH] Fix file slash replacement for linux systems not working --- core/src/main/java/io/xpipe/core/process/OsType.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/io/xpipe/core/process/OsType.java b/core/src/main/java/io/xpipe/core/process/OsType.java index 7334da3db..285299803 100644 --- a/core/src/main/java/io/xpipe/core/process/OsType.java +++ b/core/src/main/java/io/xpipe/core/process/OsType.java @@ -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