Skip to content

Commit

Permalink
Fix handling site values in command-line interface
Browse files Browse the repository at this point in the history
Fix for site like `/elm-fullstack/process-store`
  • Loading branch information
Viir committed Jun 5, 2021
1 parent 6703459 commit 355e6b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions implement/elm-fullstack/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 355e6b5

Please sign in to comment.