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: nodejs#22324
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Bryan English <bryan@bryanenglish.com>
  • Loading branch information
Trott committed Aug 14, 2018
1 parent 91dac87 commit bccd7b8
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 bccd7b8

Please sign in to comment.