The current regex to find the URL with query params is causing a catastrophic backtracking problem which is causing the browser and postman app to hang for certain cURL strings. To overcome this We have modified regex to search for URLs with query params and should contain prefix space before it.
And also we are modifying the URL in this way only when running the given cURL raises an exception to avoid running this regex in correctly formed cURL strings
The current regex to find the URL with query params is causing a catastrophic backtracking problem which is causing the browser and postman app to hang for certain cURL strings. To overcome this We have modified regex to search for URLs with query params and should contain prefix space before it. And also we are modifying the URL in this way only when running the given cURL raises an exception to avoid running this regex in correctly formed cURL strings