From 355e6b538f544634c229b2ec714c23ea804fb208 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20R=C3=A4tzel?= Date: Sat, 5 Jun 2021 11:57:25 +0000 Subject: [PATCH] Fix handling `site` values in command-line interface Fix for site like `/elm-fullstack/process-store` --- implement/elm-fullstack/Program.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/implement/elm-fullstack/Program.cs b/implement/elm-fullstack/Program.cs index c5fe6d9f..d586b9ab 100644 --- a/implement/elm-fullstack/Program.cs +++ b/implement/elm-fullstack/Program.cs @@ -1091,6 +1091,9 @@ static Uri MapUriForDefaultPort(string uriString, int defaultPort) static bool LooksLikeLocalSite(string site) { + if (site.StartsWith(".") || site.StartsWith("/")) + return true; + if (Regex.IsMatch(site, "^http(|s)://", RegexOptions.IgnoreCase)) return false;