-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Domainatrex crashes on amazon aws links #3
Comments
Hi Jason! Thanks for the catch, I'll implement a fix shortly 👍 |
This is fixed in |
Thanks! Out of curiosity how did you fix this? |
Here's the change :) 0b7e4bf#diff-218dcb9de23a64bad83597eed095780fR25 |
Sorry to bring resurrect this old issue, but I'm getting an error trying to parse similar URLs. Specifically paths that contain iex(1)> Domainatrex.parse("1234.execute-api.us-east-1.amazonaws.com")
{:error, "Cannot parse: invalid domain"}
# note the extra "s"
iex(2)> Domainatrex.parse("1234.execute-api.us-east-1.amazonawss.com")
{:ok, %{domain: "amazonawss", tld: "com", subdomain: "1234.execute-api.us-east-1"}} This is on Domainatrex v3.0.3 |
I expect domainatrex to be able to parse amazon s3 links properly. So
Domainatrex.parse("s3.amazonaws.com")
should succeed. Instead it throws the following error:Failing test case:
I think Domainatrex can probably ignore all private domains in the public suffix list. Although there may be a better solution.
The text was updated successfully, but these errors were encountered: