Skip to content

Commit 57b980d

Browse files
committed
fixup: extensionless
1 parent efc80ce commit 57b980d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/api/esm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1091,7 +1091,7 @@ async function getPackageType(url) {
10911091
// required by the spec
10921092
// this simple truthy check for whether `url` contains a file extension will
10931093
// work for most projects but does not cover some edge-cases (such as
1094-
// extension-less files or a url ending in a trailing space)
1094+
// extensionless files or a url ending in a trailing space)
10951095
const isFilePath = !!extname(url);
10961096
// If it is a file path, get the directory it's in
10971097
const dir = isFilePath ?

test/es-module/test-esm-unknown-or-no-extension.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const assert = require('assert');
3434
assert.ok(stderr.includes('ERR_UNKNOWN_FILE_EXTENSION'));
3535
if (fixturePath.includes('noext')) {
3636
// Check for explanation to users
37-
assert.ok(stderr.includes('Extension-less'));
37+
assert.ok(stderr.includes('extensionless'));
3838
}
3939
}));
4040
});

0 commit comments

Comments
 (0)