Skip to content

Commit

Permalink
Merge pull request #1153 from grahamwhiteuk/match-protocolregex-with-…
Browse files Browse the repository at this point in the history
…axios

refactor: protocol regex matches axios
  • Loading branch information
helloanoop authored Dec 5, 2023
2 parents dc39538 + 98b45a2 commit d3bec56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/bruno-cli/src/runner/run-single-request.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const { SocksProxyAgent } = require('socks-proxy-agent');
const { makeAxiosInstance } = require('../utils/axios-instance');
const { shouldUseProxy, PatchedHttpsProxyAgent } = require('../utils/proxy-util');

const protocolRegex = /([a-zA-Z]{2,20}:\/\/)(.*)/;
const protocolRegex = /^([-+\w]{1,25})(:?\/\/|:)/;

const runSingleRequest = async function (
filename,
Expand Down
2 changes: 1 addition & 1 deletion packages/bruno-electron/src/ipc/network/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const getEnvVars = (environment = {}) => {
};
};

const protocolRegex = /([a-zA-Z]{2,20}:\/\/)(.*)/;
const protocolRegex = /^([-+\w]{1,25})(:?\/\/|:)/;

const configureRequest = async (
collectionUid,
Expand Down

0 comments on commit d3bec56

Please sign in to comment.