RTEditor/src/main/java/com/onegravity/rteditor/utils/validator/DomainValidator.java
public boolean isValidLocalTld(String lTld) {
        lTld = unicodeToASCII(lTld);
        return Arrays.binarySearch(LOCAL_TLDS, chompLeadingDot(lTld.toLowerCase(Locale.ENGLISH))) >= 0;
    }
public boolean isValidLocalTld(String lTld) {
        lTld = unicodeToASCII(lTld);
        return Arrays.binarySearch(LOCAL_TLDS, chompLeadingDot(lTld.toLowerCase(Locale.ENGLISH))) >= 0;
    }
public boolean isValidLocalTld ( String lTld ) { lTld = unicodeToASCII ( lTld ) ; return Arrays . binarySearch ( LOCAL_TLDS , chompLeadingDot ( lTld . toLowerCase ( Locale . ENGLISH ) ) ) >= 0 ; }
Returns true if the specified <code>String</code> matches any
widely used "local" domains (localhost or localdomain). Leading dots are
ignored if present. The search is case-insensitive.
@param lTld the parameter to check for local TLD status, not null
@return true if the parameter is an local TLD
Returns true if the specified <code > String< / code > matches any widely used local domains ( localhost or localdomain ) . Leading dots are ignored if present . The search is case - insensitive .