We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47396a4 commit de608c3Copy full SHA for de608c3
doc/api/url.md
@@ -999,8 +999,8 @@ pathToFileURL(__filename); // Correct: file:///C:/... (Windows)
999
new URL('/foo#1', 'file:'); // Incorrect: file:///foo#1
1000
pathToFileURL('/foo#1'); // Correct: file:///foo%231 (POSIX)
1001
1002
-new URL('/some/path%.js', 'file:'); // Incorrect: file:///some/path%
1003
-pathToFileURL('/some/path%.js'); // Correct: file:///some/path%25 (POSIX)
+new URL('/some/path%.c', 'file:'); // Incorrect: file:///some/path%.c
+pathToFileURL('/some/path%.c'); // Correct: file:///some/path%25.c (POSIX)
1004
```
1005
1006
## Legacy URL API
0 commit comments