Skip to content

Commit

Permalink
remove moot regex escape
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Mar 28, 2016
1 parent 0664b98 commit 814bcac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 814bcac

Please sign in to comment.