Browse Source

remove moot regex escape

node-7
Sindre Sorhus 9 years ago
parent
commit
814bcacd14
  1. 2
      index.js

2
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];

Loading…
Cancel
Save