Created
November 15, 2016 13:19
-
-
Save olivermt/5a894c40525ce40de474e7eadba34656 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
room_name = case location do | |
"LANGUAGE=" <> rest -> | |
case rest do | |
#"en-US", "nb-NO" etc format | |
<<_x::bytes-size(2)>> <> "-" <<_x::bytes-size(2)>> <> ":" <> loc -> | |
loc | |
#"en", "zu" etc format | |
<<_x::bytes-size(2)>> <> ":" <> loc -> | |
loc | |
end | |
loc -> | |
loc | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment