How to use cron-validator - 4 common examples

To help you get started, we’ve selected a few cron-validator examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github gitlabhq / gitlabhq / app / assets / javascripts / deploy_freeze / components / deploy_freeze_modal.vue View on Github external
freezeStartCronState() {
      return Boolean(!this.freezeStartCron || isValidCron(this.freezeStartCron));
    },
    invalidFreezeEndCron() {
github gitlabhq / gitlabhq / app / assets / javascripts / deploy_freeze / components / deploy_freeze_modal.vue View on Github external
addDeployFreezeButton() {
      return {
        text: this.isEditing ? __('Save deploy freeze') : __('Add deploy freeze'),
        attributes: [
          { variant: 'confirm' },
          {
            disabled:
              !isValidCron(this.freezeStartCron) ||
              !isValidCron(this.freezeEndCron) ||
              !this.selectedTimezone,
          },
        ],
      };
    },
    invalidFreezeStartCron() {
github gitlabhq / gitlabhq / app / assets / javascripts / deploy_freeze / components / deploy_freeze_modal.vue View on Github external
addDeployFreezeButton() {
      return {
        text: this.isEditing ? __('Save deploy freeze') : __('Add deploy freeze'),
        attributes: [
          { variant: 'confirm' },
          {
            disabled:
              !isValidCron(this.freezeStartCron) ||
              !isValidCron(this.freezeEndCron) ||
              !this.selectedTimezone,
          },
        ],
      };
    },
    invalidFreezeStartCron() {
github gitlabhq / gitlabhq / app / assets / javascripts / deploy_freeze / components / deploy_freeze_modal.vue View on Github external
freezeEndCronState() {
      return Boolean(!this.freezeEndCron || isValidCron(this.freezeEndCron));
    },
    timezone: {

cron-validator

Validates cron expressions

MIT
Latest version published 3 years ago

Package Health Score

56 / 100
Full package analysis

Popular cron-validator functions