Reduces some code complexity

This commit is contained in:
2024-02-20 20:48:29 +01:00
parent cde20e35d5
commit 9abf60bb31
8 changed files with 190 additions and 109 deletions

View File

@@ -467,7 +467,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.find()) {
return dataFolderPath + matcher.replaceAll("");