{"size": 713, "ext": "js", "max_stars_repo_path": "client/src/mixins/rules.js", "max_stars_repo_name": "sniperadmin/comment-system", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "client/src/mixins/rules.js", "max_issues_repo_name": "sniperadmin/comment-system", "max_issues_repo_issues_event_min_datetime": "2020-10-28T07:08:04.000Z", "max_issues_repo_issues_event_max_datetime": "2020-12-13T11:08:11.000Z", "max_forks_repo_path": "client/src/mixins/rules.js", "max_forks_repo_name": "sniperadmin/comment-system", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 7, "max_forks_count": null, "avg_line_length": 28.52, "max_line_length": 78, "alphanum_fraction": 0.5035063114}
export default {
  data() {
    return {
      emailRules: [
        v => !!v || "email is required",
        v => /.+@.+/.test(v) || "email format is not correct"
      ],
      passwordRules: [
        v => !!v || "password required",
        v => v.length >= 6 || "password should contain min 6 characters",
        v => v.length <= 25 || "password should not exceed 25 characters"
      ],
      usernameRules: [
        v => !!v || "username is required",
        v =>
          v.length <= 25 ||
          this.$vuetify.lang.t("username cannot exceed 25 characters")
      ],
      confirmPasswordRules: [
        v => v === this.password || "confirm password must match the password"
      ]
    };
  }
};
