Missing operation for only trimming leading

This commit is contained in:
Mark Felder 2021-01-27 14:58:39 -06:00
parent a7e86d3381
commit 14e1f64a09

View file

@ -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