We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbd4255 commit 520a234Copy full SHA for 520a234
shared/src/main/kotlin/org/javacs/kt/util/URIs.kt
@@ -12,7 +12,7 @@ import java.nio.file.Paths
12
* (including VSCode) invalidly percent-encode colons.
13
*/
14
fun parseURI(uri: String): URI =
15
- URI.create(runCatching { URLDecoder.decode(uri.replace(" ", "%20"), StandardCharsets.UTF_8.toString()) }.getOrDefault(uri))
+ URI.create(runCatching { URLDecoder.decode(uri, StandardCharsets.UTF_8.toString()).replace(" ", "%20") }.getOrDefault(uri))
16
17
val URI.filePath: Path? get() = runCatching { Paths.get(this) }.getOrNull()
18
0 commit comments