cronstrue 3.42.0 → 3.43.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.
@@ -106,6 +106,9 @@ var CronParser = (function () {
106
106
  };
107
107
  CronParser.prototype.normalize = function (expressionParts) {
108
108
  var _this = this;
109
+ for (var i = 0; i < expressionParts.length; i++) {
110
+ expressionParts[i] = expressionParts[i].toUpperCase();
111
+ }
109
112
  expressionParts[3] = expressionParts[3].replace("?", "*");
110
113
  expressionParts[5] = expressionParts[5].replace("?", "*");
111
114
  expressionParts[2] = expressionParts[2].replace("?", "*");
@@ -140,9 +143,10 @@ var CronParser = (function () {
140
143
  }
141
144
  return t.replace(dowDigits, dowDigitsAdjusted);
142
145
  });
143
- if (expressionParts[5] == "L") {
144
- expressionParts[5] = "6";
145
- }
146
+ expressionParts[5] = expressionParts[5]
147
+ .split(",")
148
+ .map(function (item) { return (item == "L" ? "6" : item); })
149
+ .join(",");
146
150
  if (expressionParts[3] == "?") {
147
151
  expressionParts[3] = "*";
148
152
  }