Skip to content

Commit f9a28ed

Browse files
committed
add comment
1 parent 34bb27e commit f9a28ed

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/src/utils.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ describe('utils', () => {
55
describe('pathToUrlString', () => {
66
it('encode relative path like `pathToFileURL`', () => {
77
const baseURL = pathToFileURL('').toString();
8+
// Skip charcodes 0-32 to work around Node trailing whitespace regression:
9+
// https://github.com/nodejs/node/issues/51167
810
for (let i = 33; i < 128; i++) {
911
const char = String.fromCharCode(i);
1012
const filename = `${i}-${char}`;

0 commit comments

Comments
 (0)