summaryrefslogtreecommitdiff
path: root/lib/lsg_web.ex
diff options
context:
space:
mode:
Diffstat (limited to 'lib/lsg_web.ex')
-rw-r--r--lib/lsg_web.ex16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/lsg_web.ex b/lib/lsg_web.ex
index e07d648..f5dee6f 100644
--- a/lib/lsg_web.ex
+++ b/lib/lsg_web.ex
@@ -17,6 +17,22 @@ defmodule LSGWeb do
and import those modules here.
"""
+ def format_chan("#") do
+ "♯"
+ end
+
+ def format_chan("#"<>chan) do
+ chan
+ end
+
+ def reformat_chan("♯") do
+ ""
+ end
+
+ def reformat_chan(chan) do
+ "#"<>chan
+ end
+
def controller do
quote do
use Phoenix.Controller, namespace: LSGWeb