You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The DomainName#apexDomain function returns None for two types of domain names that are valid, and have a suffix listed in PublicSuffixes.scala:
punycode IDNs
Fully qualified domain names (domain names with a trailing dot)
The workaround for this — if anyone comes across this as well — is to check and strip the dot at the end, and convert the domain name to unicode before calling .apexDomain.
java.net.IDN.toUnicode("www.example.xn--6frz82g")
fedorovar
added a commit
to ActianCorp/scala-uri
that referenced
this issue
Apr 22, 2024
Describe the bug
The
DomainName#apexDomain
function returnsNone
for two types of domain names that are valid, and have a suffix listed inPublicSuffixes.scala
:Reference:
scala-uri/shared/src/main/scala/io/lemonlabs/uri/inet/PublicSuffixes.scala
Line 7288 in 0602953
To Reproduce
The text was updated successfully, but these errors were encountered: