Alters the RegEx for replacing the plugin folder path

This commit is contained in:
2024-02-20 19:29:27 +01:00
parent ee9bc21099
commit 9abf6db27a
9 changed files with 55 additions and 55 deletions

View File

@@ -464,7 +464,7 @@ public final class StargateConfig {
*/
@NotNull
private String replacePluginFolderPath(@NotNull String input) {
Pattern pattern = Pattern.compile("(?i)^plugins/Stargate");
Pattern pattern = Pattern.compile("(?i)^plugins[\\\\\\/]Stargate");
Matcher matcher = pattern.matcher(input);
if (matcher.matches()) {
return dataFolderPath + matcher.replaceAll("");