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