diff options
author | Yorhel <git@yorhel.nl> | 2020-03-07 18:22:06 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2020-03-07 18:22:38 +0100 |
commit | d3bdd5f9609e5029001372dff4c2379b5dacb844 (patch) | |
tree | 0a7569b2cc80fdd3c524b7ccf62f6e55a0ab5472 /elm/Lib/ExtLinks.elm | |
parent | bc42f3743b000f4ed85fb8e7330cf1a3fddfdbdc (diff) |
Lib.ExtLinks: Ignore whitespace around URLs
Diffstat (limited to 'elm/Lib/ExtLinks.elm')
-rw-r--r-- | elm/Lib/ExtLinks.elm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/elm/Lib/ExtLinks.elm b/elm/Lib/ExtLinks.elm index 98d5df10..91d8ba4c 100644 --- a/elm/Lib/ExtLinks.elm +++ b/elm/Lib/ExtLinks.elm @@ -80,7 +80,7 @@ update msg model = in case msg of Del f i -> { model | links = f i model.links } - Input i -> { model | input = i, rec = find i } + Input i -> { model | input = i, rec = find (String.trim i) } Enter -> case model.rec of Add (s, val) -> { model | input = "", rec = Unrecognized, links = s.add val model.links } |