Skip to content

Commit

Permalink
fixup! url: handle "unsafe" characters properly in pathToFileURL
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed Sep 20, 2024
1 parent 8e2ebb9 commit dcb75fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-url-pathtofileurl.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const url = require('url');
{
const fileURL = url.pathToFileURL('test\\').href;
assert.ok(fileURL.startsWith('file:///'));
assert.match(fileURL, isWindows ? /\\$/ : /%5C$/);
assert.match(fileURL, isWindows ? /\/$/ : /%5C$/);
}

{
Expand Down

0 comments on commit dcb75fa

Please sign in to comment.