From f72d745d720fabe7e40b1ca0d549b680c06ee978 Mon Sep 17 00:00:00 2001 From: Alexander Vogt Date: Wed, 21 Feb 2024 13:44:26 +0100 Subject: [PATCH] fix left side check --- core/src/main/java/de/jplag/reporting/FilePathUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/de/jplag/reporting/FilePathUtil.java b/core/src/main/java/de/jplag/reporting/FilePathUtil.java index 2ba56c9bf..aff67ef3e 100644 --- a/core/src/main/java/de/jplag/reporting/FilePathUtil.java +++ b/core/src/main/java/de/jplag/reporting/FilePathUtil.java @@ -41,7 +41,7 @@ public static String joinZipPathSegments(String left, String right) { } String leftStripped = left; - while (leftStripped.endsWith(ZIP_PATH_SEPARATOR) || rightStripped.startsWith(WINDOWS_PATH_SEPARATOR)) { + while (leftStripped.endsWith(ZIP_PATH_SEPARATOR) || leftStripped.startsWith(WINDOWS_PATH_SEPARATOR)) { leftStripped = leftStripped.substring(0, leftStripped.length() - 1); }