We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8b166d commit cb4fa72Copy full SHA for cb4fa72
dev-proxy/ProxyEngine.cs
@@ -298,9 +298,11 @@ private void LoadHostNamesFromUrls()
298
}
299
300
// extract host from the URL
301
- string urlToWatchPattern = Regex.Unescape(urlToWatch.Url.ToString()).Replace(".*", "*");
+ string urlToWatchPattern = Regex.Unescape(urlToWatch.Url.ToString())
302
+ .Trim('^', '$')
303
+ .Replace(".*", "*");
304
string hostToWatch;
- if (urlToWatchPattern.ToString().Contains("://"))
305
+ if (urlToWatchPattern.Contains("://"))
306
{
307
// if the URL contains a protocol, extract the host from the URL
308
var urlChunks = urlToWatchPattern.Split("://");
0 commit comments