mirror of
https://github.com/ash-project/ash_hq.git
synced 2024-09-20 05:13:23 +12:00
chore: remove unused alias
This commit is contained in:
parent
3fb8748f31
commit
db5b94028d
1 changed files with 6 additions and 3 deletions
|
@ -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()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue