private static void validate(byte[] filter, boolean isNumericOid, int index) {
        char c = (char) filter[index];
        if (isNumericOid) {
            if ((c == '.' && filter[index - 1] == '.') || (c != '.' && !(c >= '0' && c <= '9'))) {
                throw new LdapException(ResultCode.FILTER_ERROR, "Invalid attribute description");
            }
        } else {
            validateAttributeDescription(c);
        }
    }
@author James Chen
@implSpec <a href="https://tools.ietf.org/html/rfc4515"> RFC 4515: String Representation of
          Search Filters</a>
turms-gateway/src/main/java/im/turms/gateway/infra/ldap/element/operation/search/Filter.java