Skip to content

Commit a658a4d

Browse files
Trottrvagg
authored andcommitted
doc: remove redundant explanation of format
Simplify format explanation for urlObject.auth. PR-URL: #22324 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Bryan English <bryan@bryanenglish.com>
1 parent 3236697 commit a658a4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/url.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -921,8 +921,8 @@ The legacy `urlObject` (`require('url').Url`) is created and returned by the
921921
The `auth` property is the username and password portion of the URL, also
922922
referred to as _userinfo_. This string subset follows the `protocol` and
923923
double slashes (if present) and precedes the `host` component, delimited by an
924-
ASCII "at sign" (`@`). The format of the string is `{username}[:{password}]`,
925-
with the `[:{password}]` portion being optional.
924+
ASCII "at sign" (`@`). The string is either the username, or it is the username
925+
and password separated by `:`.
926926

927927
For example: `'user:pass'`.
928928

0 commit comments

Comments
 (0)