From b56eb1ba6137c00284d71821f6bca610452bc91f Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Mon, 29 Jul 2019 22:34:40 +0200 Subject: [PATCH] Improve parsing logic --- frontend/src/Parse.elm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/src/Parse.elm b/frontend/src/Parse.elm index 7b4b6d8..c8f927b 100644 --- a/frontend/src/Parse.elm +++ b/frontend/src/Parse.elm @@ -14,8 +14,7 @@ parseUrl url = |> Maybe.andThen (\( ( ( ( ( prov, user ), repo ), separator ), gitref ), file ) -> if - List.isEmpty file - || (List.head file |> Maybe.map String.isEmpty |> Maybe.withDefault False) + (List.head file |> Maybe.map String.isEmpty |> Maybe.withDefault True) || (separator /= pathSeparator prov) then Nothing