mirror of
https://github.com/nodejs/node.git
synced 2026-11-29 14:27:57 -05:00
doc: fix wrong output of example in url.password
Tailing slash of url.href is ommited. PR-URL: https://github.com/nodejs/node/pull/45928 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
1 parent
b66ae39c1e
commit
f3dd3fed6d
1 file changed
+1
-1
+1
-1
@@ -332,7 +332,7 @@ console.log(myURL.password);
|
||||
|
||||
myURL.password = '123';
|
||||
console.log(myURL.href);
|
||||
// Prints https://abc:123@example.com
|
||||
// Prints https://abc:123@example.com/
|
||||
```
|
||||
|
||||
Invalid URL characters included in the value assigned to the `password` property
|
||||
|
||||
Reference in new issue
Block a user