mirror of
https://github.com/google/nomulus
synced 2025-12-23 06:15:42 +00:00
Allow two-letter domain names
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=130139005
This commit is contained in:
@@ -163,8 +163,8 @@ public final class ReservedList
|
||||
*/
|
||||
public static ReservationType getReservation(String label, String tld) {
|
||||
checkNotNull(label, "label");
|
||||
if (label.length() == 0 || label.length() == 2) {
|
||||
return FULLY_BLOCKED; // All 2-letter labels are FULLY_BLOCKED.
|
||||
if (label.length() == 0) {
|
||||
return FULLY_BLOCKED;
|
||||
}
|
||||
ReservedListEntry entry = getReservedListEntry(label, tld);
|
||||
return (entry != null) ? entry.reservationType : UNRESERVED;
|
||||
|
||||
Reference in New Issue
Block a user