From 8c509bd88517ebc92673d9da91e71a08868e830e Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Mon, 4 May 2020 19:32:54 +0100 Subject: feat(URL): Support drive letters for file URLs on Windows (#5074) refactor: Parse URLs more sequentially. This makes it easier to change matching behaviour depending on the protocol. fix: Fail when a host isn't given for certain protocols. fix: Convert back-slashes info forward-slashes. --- std/path/from_file_url_test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'std/path/from_file_url_test.ts') diff --git a/std/path/from_file_url_test.ts b/std/path/from_file_url_test.ts index 79389b91b..b3f2bb6c6 100644 --- a/std/path/from_file_url_test.ts +++ b/std/path/from_file_url_test.ts @@ -26,7 +26,7 @@ Deno.test("[path] fromFileUrl (win32)", function () { // assertEquals(path.win32.fromFileUrl("file:////server"), "\\"); // assertEquals(path.win32.fromFileUrl("file:////server/file"), "\\file"); assertEquals(path.win32.fromFileUrl("file:///c"), "\\c"); - assertEquals(path.win32.fromFileUrl("file:///c:"), "\\c:"); + assertEquals(path.win32.fromFileUrl("file:///c:"), "c:\\"); assertEquals(path.win32.fromFileUrl("file:///c:/"), "c:\\"); assertEquals(path.win32.fromFileUrl("file:///C:/"), "C:\\"); assertEquals(path.win32.fromFileUrl("file:///C:/Users/"), "C:\\Users\\"); -- cgit v1.2.3