Merge pull request #1153 from grahamwhiteuk/match-protocolregex-with-axios

refactor: protocol regex matches axios
This commit is contained in:
Anoop M D 2023-12-05 23:32:54 +05:30 committed by GitHub
commit d3bec5631e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -72,7 +72,7 @@ const getEnvVars = (environment = {}) => {
};
};
const protocolRegex = /([a-zA-Z]{2,20}:\/\/)(.*)/;
const protocolRegex = /^([-+\w]{1,25})(:?\/\/|:)/;
const configureRequest = async (
collectionUid,