Skip to content

Commit

Permalink
chore: apply automated lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Aug 24, 2023
1 parent 1728278 commit 53c6351
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ export function parseURL(input = "", defaultProto?: string): ParsedURL {
}

const [protocol = "", auth, hostAndPath = ""] = (
input.replace(/\\/g, "/").match(/([\s\w\0+.-]{2,}:)?\/\/([^/@]+@)?(.*)/) || []
input.replace(/\\/g, "/").match(/([\s\w\0+.-]{2,}:)?\/\/([^/@]+@)?(.*)/) ||
[]
).splice(1);
const [host = "", path = ""] = (
hostAndPath.match(/([^#/?]*)(.*)?/) || []
Expand Down

0 comments on commit 53c6351

Please sign in to comment.