Hello!
I want to propose some new features in URI module. First one is naked domain, which works something like this assert "http://foo.bar.baz.com" |> URI.parse |> Map.get(:naked_domain) == "baz.com" or assert "http://foo.bar.baz.com" |> URI.naked_domain == "baz.com" And subdomain method: assert "http://foo.bar.baz.com" |> URI.subdomain("baz.com") == "foo.bar" assert "http://foo.bar.baz.com" |> URI.subdomain("bar.baz.com") == "foo" May be it can be relevant. -- You received this message because you are subscribed to the Google Groups "elixir-lang-core" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/908c9ab7-321f-43c3-9bdc-8f695f7ebd79%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
