We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c6429d3 commit 24e9fb4Copy full SHA for 24e9fb4
test/parallel/test-url-parse-format.js
@@ -1007,6 +1007,22 @@ const parseTests = {
1007
path: '/',
1008
href: 'https://evil.com$.example.com/'
1009
},
1010
+
1011
+ // Validate the output of hostname with commas.
1012
+ 'x://0.0,1.1/': {
1013
+ protocol: 'x:',
1014
+ slashes: true,
1015
+ auth: null,
1016
+ host: '0.0,1.1',
1017
+ port: null,
1018
+ hostname: '0.0,1.1',
1019
+ hash: null,
1020
+ search: null,
1021
+ query: null,
1022
+ pathname: '/',
1023
+ path: '/',
1024
+ href: 'x://0.0,1.1/'
1025
+ }
1026
};
1027
1028
for (const u in parseTests) {
0 commit comments