private validateValue()

in src/blob/persistence/QueryInterpreter/QueryParser.ts [350:369]


  private validateValue(value: string) {
    if (!this.conditionHeader && (value.length > 256)) {
      this.query.throw(`tag value must be between 0 and 256 characters in length`);
    }
    for (let c of value) {
      if (!(c >= 'a' && c <= 'z' ||
        c >= 'A' && c <= 'Z' ||
        c >= '0' && c <= '9' ||
        c == ' ' ||
        c == '+' ||
        c == '-' ||
        c == '.' ||
        c == '/' ||
        c == ':' ||
        c == '=' ||
        c == '_')) {
        this.query.throw(`'${c}' not permitted in tag name or value`);
      }
    }
  }