From d6ee134a5957e299c3ad59011df320b3c41e6e61 Mon Sep 17 00:00:00 2001 From: href Date: Tue, 7 Jul 2020 21:39:10 +0200 Subject: pouet --- lib/lsg_web.ex | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'lib/lsg_web.ex') 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 -- cgit v1.2.3