chore: remove unused alias

This commit is contained in:
Zach Daniel 2023-10-13 11:57:12 -04:00
parent 3fb8748f31
commit db5b94028d

View file

@ -7,7 +7,6 @@ defmodule AshHqWeb.Components.Search do
alias AshHqWeb.Components.Icon alias AshHqWeb.Components.Icon
alias AshHqWeb.DocRoutes alias AshHqWeb.DocRoutes
alias Surface.Components.{Form, LivePatch} alias Surface.Components.{Form, LivePatch}
alias Surface.Components.Form.Checkbox
prop(close, :event, required: true) prop(close, :event, required: true)
prop(libraries, :list, required: true) prop(libraries, :list, required: true)
@ -159,10 +158,14 @@ defmodule AshHqWeb.Components.Search do
first_sentence = first_sentence =
doc doc
|> String.trim() |> String.trim()
|> String.split("<!--- heads-end -->", parts: 2) |> String.split("<!--- heads-end -->", parts: 2, trim: true)
|> List.last() |> List.last()
|> String.trim() |> String.trim()
|> String.split("\n", parts: 2) |> String.split("\n", parts: 3, trim: true)
|> case do
["#" <> _ | rest] -> rest
other -> other
end
|> Enum.at(0) |> Enum.at(0)
|> String.trim() |> String.trim()