Since split needs regex, added function that returns regex according to systems file separator.

This commit is contained in:
WickedJack99
2024-04-22 15:57:05 +02:00
parent 1986792a27
commit b38696e75a

View File

@@ -339,4 +339,12 @@ public class FileReaderWriter {
return content;
}
}
public static String getFileSeparatorRegex() {
if (File.separator.equals("\\")) {
return "\\\\";
} else {
return File.separator;
}
}
}