Skip to content

Commit f924978

Browse files
committed
feat(ENGKNOW-2957): More control over link data path.
1 parent fabc74e commit f924978

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

model/src/main/java/org/gorpipe/gor/driver/linkfile/LinkFile.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public static String inferDataFileNameFromLinkFile(StreamSource linkSource, Stri
104104
// Remove common the root if set.
105105
var pathReplacements = System.getenv("GOR_DRIVER_LINK_INFER_REPLACE");
106106
if (!Strings.isNullOrEmpty(pathReplacements)) {
107-
var parts = pathReplacements.split(";");
107+
var parts = pathReplacements.split(";", 2);
108108
linkPath = linkPath.replaceAll(parts[0], parts.length > 1 ? parts[1] : "");
109109
}
110110

0 commit comments

Comments
 (0)