mirror of
https://github.com/google/nomulus
synced 2026-08-21 06:36:15 +00:00
Fix RDAP quirks uncovered during documentation
There's no reason not to allow a one-character search string when there are no wildcards. And the ROID validity pattern did not allow underscores, which was causing problems with our ROIDs. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=136256605
This commit is contained in:
@@ -16,6 +16,7 @@ package google.registry.rdap;
|
||||
|
||||
import static com.google.common.base.Strings.nullToEmpty;
|
||||
import static google.registry.model.ofy.ObjectifyService.ofy;
|
||||
import static google.registry.util.DomainNameUtils.ACE_PREFIX;
|
||||
|
||||
import com.google.auto.value.AutoValue;
|
||||
import com.google.common.base.Function;
|
||||
@@ -1054,6 +1055,7 @@ public class RdapJsonFormatter {
|
||||
}
|
||||
|
||||
private static boolean hasUnicodeComponents(String fullyQualifiedName) {
|
||||
return fullyQualifiedName.startsWith("xn--") || fullyQualifiedName.contains(".xn--");
|
||||
return fullyQualifiedName.startsWith(ACE_PREFIX)
|
||||
|| fullyQualifiedName.contains("." + ACE_PREFIX);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user