RTEditor/src/main/java/com/onegravity/rteditor/utils/validator/DomainValidator.java
public boolean isValidInfrastructureTld(String iTld) {
        iTld = unicodeToASCII(iTld);
        return Arrays.binarySearch(INFRASTRUCTURE_TLDS, (chompLeadingDot(iTld.toLowerCase(Locale.ENGLISH)))) >= 0;
    }
public boolean isValidInfrastructureTld(String iTld) {
        iTld = unicodeToASCII(iTld);
        return Arrays.binarySearch(INFRASTRUCTURE_TLDS, (chompLeadingDot(iTld.toLowerCase(Locale.ENGLISH)))) >= 0;
    }
public boolean isValidInfrastructureTld ( String iTld ) { iTld = unicodeToASCII ( iTld ) ; return Arrays . binarySearch ( INFRASTRUCTURE_TLDS , ( chompLeadingDot ( iTld . toLowerCase ( Locale . ENGLISH ) ) ) ) >= 0 ; }
Returns true if the specified <code>String</code> matches any
IANA-defined infrastructure top-level domain. Leading dots are
ignored if present. The search is case-insensitive.
@param iTld the parameter to check for infrastructure TLD status, not null
@return true if the parameter is an infrastructure TLD
Returns true if the specified <code > String< / code > matches any IANA - defined infrastructure top - level domain . Leading dots are ignored if present . The search is case - insensitive .