summaryrefslogtreecommitdiff
path: root/lib/web.ex
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lib/web.ex15
1 files changed, 9 insertions, 6 deletions
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]