From c934e79e5852e05f714b2d542cc2678e287c49b8 Mon Sep 17 00:00:00 2001 From: Jordan Bracco Date: Wed, 25 Jun 2025 19:22:59 +0200 Subject: format. --- lib/web.ex | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'lib/web.ex') diff --git a/lib/web.ex b/lib/web.ex index c1720a0..e8cb26d 100644 --- a/lib/web.ex +++ b/lib/web.ex @@ -25,22 +25,24 @@ defmodule NolaWeb do "♯" end - def format_chan("#"<>chan) do + def format_chan("#" <> chan) do chan end - def format_chan(chan = "!"<>_), do: chan + def format_chan(chan = "!" <> _), do: chan def reformat_chan("♯") do "#" end + def reformat_chan("♯♯") do "##" end - def reformat_chan(chan = "!"<>_), do: chan + + def reformat_chan(chan = "!" <> _), do: chan def reformat_chan(chan) do - "#"<>chan + "#" <> chan end def controller do @@ -55,8 +57,9 @@ defmodule NolaWeb do def view do quote do - use Phoenix.View, root: "lib/web/templates", - namespace: NolaWeb + use Phoenix.View, + root: "lib/web/templates", + namespace: NolaWeb # Import convenience functions from controllers import Phoenix.Controller, only: [get_flash: 2, view_module: 1] -- cgit v1.2.3