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