Skip to content

Commit

Permalink
doc: remove redundant explanation of format
Browse files Browse the repository at this point in the history
Simplify format explanation for urlObject.auth.

PR-URL: #22324
Reviewed-By: Vse Mozhet Byt <[email protected]>
Reviewed-By: Bryan English <[email protected]>
  • Loading branch information
Trott authored and rvagg committed Aug 15, 2018
1 parent 3236697 commit a658a4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/url.md
Original file line number Diff line number Diff line change
Expand Up @@ -921,8 +921,8 @@ The legacy `urlObject` (`require('url').Url`) is created and returned by the
The `auth` property is the username and password portion of the URL, also
referred to as _userinfo_. This string subset follows the `protocol` and
double slashes (if present) and precedes the `host` component, delimited by an
ASCII "at sign" (`@`). The format of the string is `{username}[:{password}]`,
with the `[:{password}]` portion being optional.
ASCII "at sign" (`@`). The string is either the username, or it is the username
and password separated by `:`.

For example: `'user:pass'`.

Expand Down

0 comments on commit a658a4d

Please sign in to comment.