mirror of
https://github.com/ash-project/ash_postgres.git
synced 2024-09-20 05:23:18 +12:00
chore: fix mix docs
This commit is contained in:
parent
612c9ee7a9
commit
d2f8ba1960
1 changed files with 2 additions and 2 deletions
4
mix.exs
4
mix.exs
|
@ -73,7 +73,7 @@ defmodule AshPostgres.MixProject do
|
|||
|> Path.basename(".livemd")
|
||||
|> Path.basename(".cheatmd")
|
||||
|> String.split(~r/[-_]/)
|
||||
|> Enum.map(&capitalize/1)
|
||||
|> Enum.map_join(" ", &capitalize/1)
|
||||
|> case do
|
||||
"F A Q" ->
|
||||
"FAQ"
|
||||
|
@ -92,7 +92,7 @@ defmodule AshPostgres.MixProject do
|
|||
defp capitalize(string) do
|
||||
string
|
||||
|> String.split(" ")
|
||||
|> Enum.map_join(" ", fn string ->
|
||||
|> Enum.map(fn string ->
|
||||
[hd | tail] = String.graphemes(string)
|
||||
String.capitalize(hd) <> Enum.join(tail)
|
||||
end)
|
||||
|
|
Loading…
Reference in a new issue