diff options
Diffstat (limited to 'lib/lsg_web.ex')
-rw-r--r-- | lib/lsg_web.ex | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/lsg_web.ex b/lib/lsg_web.ex index eb0cdc5..3d9ab9a 100644 --- a/lib/lsg_web.ex +++ b/lib/lsg_web.ex @@ -29,12 +29,15 @@ defmodule LSGWeb do chan end + 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 @@ -46,6 +49,7 @@ defmodule LSGWeb do import Plug.Conn import LSGWeb.Router.Helpers import LSGWeb.Gettext + alias LSGWeb.Router.Helpers, as: Routes end end @@ -65,6 +69,8 @@ defmodule LSGWeb do import LSGWeb.Gettext import Phoenix.LiveView.Helpers + + alias LSGWeb.Router.Helpers, as: Routes end end |