Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 authored Mar 14, 2023
1 parent 8002bd9 commit 2adfa0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ export function parseAuth(input = ""): ParsedAuth {
/**
* It takes a string, and returns an object with two properties: `hostname` and `port`
* @param [input] - The URL to parse.
* @returns A function that takes a string and returns an object with two properties: hostname and
* port.
* @returns A function that takes a string and returns an object with two properties: `hostname` and
* `port`.
*/
export function parseHost(input = ""): ParsedHost {
const [hostname, port] = (input.match(/([^/:]*):?(\d+)?/) || []).splice(1);
Expand Down

0 comments on commit 2adfa0f

Please sign in to comment.