validateId()

in app/index.js [51:59]


  validateId(input) {
    const notEmpty = this.validateNotEmpty(input);

    if (typeof notEmpty === "string") {
      return notEmpty;
    }

    return (input && input.indexOf(" ") < 0) || "No spaces allowed";
  }