From 14e1f64a09c5328ef7477beb9d45392d85e73c70 Mon Sep 17 00:00:00 2001 From: Mark Felder Date: Wed, 27 Jan 2021 14:58:39 -0600 Subject: [PATCH] Missing operation for only trimming leading --- lib/linkify/parser.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/linkify/parser.ex b/lib/linkify/parser.ex index 71ac58d..1e5fd4b 100644 --- a/lib/linkify/parser.ex +++ b/lib/linkify/parser.ex @@ -215,6 +215,7 @@ defmodule Linkify.Parser do buffer |> String.trim_leading("(") |> String.trim_trailing(")") else :both -> buffer |> String.trim_leading("(") |> String.trim_trailing(")") + :leading_only -> buffer |> String.trim_leading("(") :noop -> buffer _ -> buffer end