Skip to content

Commit

Permalink
chore: fix mix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Sep 22, 2023
1 parent 612c9ee commit d2f8ba1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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)
Expand Down

0 comments on commit d2f8ba1

Please sign in to comment.