Skip to content

Commit

Permalink
Dont depend on mix config for character map
Browse files Browse the repository at this point in the history
  • Loading branch information
l1h3r committed May 7, 2018
1 parent ba3ad1f commit 4fa8703
Show file tree
Hide file tree
Showing 4 changed files with 301 additions and 294 deletions.
291 changes: 0 additions & 291 deletions config/config.exs

This file was deleted.

4 changes: 2 additions & 2 deletions lib/gsm.ex
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ defmodule GSM do
end

# Extended (2-byte) GSM-7 characters
@extended Application.fetch_env!(:gsm, :extended)
@extended GSM.Conversion.extended()

# UTF-8 to GSM-7 character mapping
@u2g Application.fetch_env!(:gsm, :conversion)
@u2g GSM.Conversion.conversion()

# GSM-7 to UTF-8 character mapping
@g2t for {key, value} <- @u2g, into: %{}, do: {value, key}
Expand Down

0 comments on commit 4fa8703

Please sign in to comment.