mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00: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:
@@ -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