From 67dbb66c734d025a2ef48ed4d2b7859ae31dca23 Mon Sep 17 00:00:00 2001 From: John Bogovic Date: Mon, 29 Apr 2024 20:11:50 -0400 Subject: [PATCH] fix: do not replace file: prefix for uris --- .../org/janelia/saalfeldlab/n5/ui/DatasetSelectorDialog.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/janelia/saalfeldlab/n5/ui/DatasetSelectorDialog.java b/src/main/java/org/janelia/saalfeldlab/n5/ui/DatasetSelectorDialog.java index 1cef8af6..29b76393 100644 --- a/src/main/java/org/janelia/saalfeldlab/n5/ui/DatasetSelectorDialog.java +++ b/src/main/java/org/janelia/saalfeldlab/n5/ui/DatasetSelectorDialog.java @@ -964,7 +964,7 @@ public Object stringToValue(String input) throws ParseException { public String valueToString(Object arg) throws ParseException { if( arg instanceof URI ) - return ((URI)arg).toString().replaceFirst("^file://", ""); + return ((URI)arg).toString(); else throw new ParseException("input " + arg + " not a valid URI", 0); }