Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,15 @@ public class JSFileSystem implements FileSystem {
*
* For instance, it might receive
* <code>/META-INF/js/libs/react-i18next.js</code> (stringified output of the
* method) or <code>/usr/local/graalvm/languages/js</code> (internal import).
* method) or <code>/usr/local/graalvm/languages/js</code> (internal import) or
* even worse <code>d:\jdk17\languages\js</code> on Windows.
*
* This is safe-guarded by this <code>path.startsWith("/")</code> check until
* someone comes with a better solution.
*/
@Override
public Path parsePath(String path) {
if (path.startsWith("/")) {
if (path.startsWith("/") || path.contains(":\\")) {
Comment thread
GauBen marked this conversation as resolved.
Outdated
return Path.of(path);
}

Expand Down
Loading