summaryrefslogtreecommitdiff
path: root/elm/Lib/ExtLinks.elm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2020-03-07 18:22:06 +0100
committerYorhel <git@yorhel.nl>2020-03-07 18:22:38 +0100
commitd3bdd5f9609e5029001372dff4c2379b5dacb844 (patch)
tree0a7569b2cc80fdd3c524b7ccf62f6e55a0ab5472 /elm/Lib/ExtLinks.elm
parentbc42f3743b000f4ed85fb8e7330cf1a3fddfdbdc (diff)
Lib.ExtLinks: Ignore whitespace around URLs
Diffstat (limited to 'elm/Lib/ExtLinks.elm')
-rw-r--r--elm/Lib/ExtLinks.elm2
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 }