From 814bcacd1433d8f62dbb81260526b9ff56b26934 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Mon, 28 Mar 2016 13:08:24 +0700 Subject: [PATCH] remove moot regex escape --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index f2099287c..0a43b9b83 100644 --- a/index.js +++ b/index.js @@ -247,7 +247,7 @@ function normalizeArguments(url, opts) { opts.method = opts.method.toUpperCase(); if (opts.hostname === 'unix') { - const matches = /(.+)\:(.+)/.exec(opts.path); + const matches = /(.+):(.+)/.exec(opts.path); if (matches) { opts.socketPath = matches[1];