From 2adfa0fafdc3a691ae8421314d5c352feaa8ac72 Mon Sep 17 00:00:00 2001 From: pooya parsa Date: Tue, 14 Mar 2023 11:06:44 +0100 Subject: [PATCH] Apply suggestions from code review --- src/parse.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/parse.ts b/src/parse.ts index e1d1cded..53adecf9 100644 --- a/src/parse.ts +++ b/src/parse.ts @@ -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);