@@ -97,6 +97,7 @@ registerOptionPreset('YOUR-PRESET-ID', {
97
97
useAliases: false , // optional, default to false
98
98
useBlankDay: false ,
99
99
allowOnlyOneBlankDayField: false ,
100
+ allowStepping: true , // optional, defaults to true
100
101
mustHaveBlankDayField: false , // optional, default to false
101
102
useLastDayOfMonth: false , // optional, default to false
102
103
useLastDayOfWeek: false , // optional, default to false
@@ -161,6 +162,9 @@ The preset properties explained:
161
162
- enables blank day notation '?' in daysOfMonth and daysOfWeek field
162
163
- ` allowOnlyOneBlankDayField: boolean `
163
164
- requires a day field to not be blank (so not both day fields can be blank)
165
+ - ` allowStepping: boolean `
166
+ - optional, will default to true
167
+ - when set to false, disallows the use of the '/' operation for valid expressions
164
168
- ` mustHaveBlankDayField: boolean `
165
169
- requires a day field to be blank (so not both day fields are specified)
166
170
- when mixed with ` allowOnlyOneBlankDayField ` , it means that there will always be either day or day of week as ` ? `
@@ -200,14 +204,14 @@ If you want to override a option for single cron validations, you can use the `o
200
204
201
205
``` typescript
202
206
console .log (cron (' * * * * * *' , {
203
- preset: ' default' // second field not supported in default preset
207
+ preset: ' default' , // second field not supported in default preset
204
208
override: {
205
209
useSeconds: true // override preset option
206
210
}
207
211
}))
208
212
209
213
console .log (cron (' * 10-20 * * * *' , {
210
- preset: ' default'
214
+ preset: ' default' ,
211
215
override: {
212
216
minutes: {
213
217
lowerLimit: 10 , // override preset option
0 commit comments