Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

esm: skip file: URL conversion to path when possible #46305

Merged
merged 6 commits into from
Apr 1, 2023
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
Prev Previous commit
Next Next commit
Update lib/internal/modules/esm/get_format.js
  • Loading branch information
aduh95 committed Mar 19, 2023
commit dd073836599e16ad18fbacfbca3396baa47c952f
2 changes: 1 addition & 1 deletion lib/internal/modules/esm/get_format.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const DOT_CODE = 46;
const SLASH_CODE = 47;

/**
* Returns the file extension from a file: URL. Should give similar result than
* Returns the file extension from a URL. Should give similar result to
* require('node:path').extname(require('node:url').fileURLToPath(url)).
aduh95 marked this conversation as resolved.
Show resolved Hide resolved
* @param {URL} url A file: URL.
JakobJingleheimer marked this conversation as resolved.
Show resolved Hide resolved
aduh95 marked this conversation as resolved.
Show resolved Hide resolved
* @returns {string}
Expand Down