mirror of
https://github.com/google/nomulus
synced 2026-01-04 04:04:22 +00:00
The canonicalizeHostname() helper method is only suitable for use with domain names or host names. It does not work on bare TLDs, because a bare TLD can have hyphens in the third and fourth position without necessarily being an IDN. Note that the configure TLD command already correctly allows TLDs with such names to be created. Note that we are still enforcing that the TLDs to be added exist, so they have to pass all TLD naming requirements that are enforced on creating TLDs, and we are still lowercasing the TLD names passed as arguments here (though we're no longer punycoding them, although arguably that's not super useful on command-line params anyway). BUG= http://b/471013082