cronstrue 3.29.0 → 3.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -121,7 +121,7 @@ var CronParser = (function () {
121
121
  if (expressionParts[3].indexOf("1/") == 0) {
122
122
  expressionParts[3] = expressionParts[3].replace("1/", "*/");
123
123
  }
124
- if (expressionParts[4].indexOf("1/") == 0) {
124
+ if (!this.monthStartIndexZero && expressionParts[4].indexOf("1/") == 0) {
125
125
  expressionParts[4] = expressionParts[4].replace("1/", "*/");
126
126
  }
127
127
  if (expressionParts[6].indexOf("1/") == 0) {
@@ -162,7 +162,7 @@ var CronParser = (function () {
162
162
  for (var day in days) {
163
163
  expressionParts[5] = expressionParts[5].replace(new RegExp(day, "gi"), days[day].toString());
164
164
  }
165
- expressionParts[4] = expressionParts[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g, function (t) {
165
+ expressionParts[4] = expressionParts[4].replace(/(^\d{1,2})|([^#/\s\d]\d{1,2})/g, function (t) {
166
166
  var dowDigits = t.replace(/\D/, "");
167
167
  var dowDigitsAdjusted = dowDigits;
168
168
  if (_this.monthStartIndexZero) {