cronstrue 3.36.0 → 3.37.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.
package/dist/cronstrue-i18n.js
CHANGED
|
@@ -127,7 +127,7 @@ var CronParser = (function () {
|
|
|
127
127
|
if (expressionParts[6].indexOf("1/") == 0) {
|
|
128
128
|
expressionParts[6] = expressionParts[6].replace("1/", "*/");
|
|
129
129
|
}
|
|
130
|
-
expressionParts[5] = expressionParts[5].replace(/(^\d)|([^#/\s]\d)/g, function (t) {
|
|
130
|
+
expressionParts[5] = expressionParts[5].replace(/(^\d)|([^#/\s\d]\d)/g, function (t) {
|
|
131
131
|
var dowDigits = t.replace(/\D/, "");
|
|
132
132
|
var dowDigitsAdjusted = dowDigits;
|
|
133
133
|
if (_this.dayOfWeekStartIndexZero) {
|
|
@@ -9266,6 +9266,10 @@ var RangeValidator = (function () {
|
|
|
9266
9266
|
RangeValidator.dayOfWeekRange = function (parse, dayOfWeekStartIndexZero) {
|
|
9267
9267
|
var parsed = parse.split(',');
|
|
9268
9268
|
for (var i = 0; i < parsed.length; i++) {
|
|
9269
|
+
if (parsed[i].indexOf('#') > -1) {
|
|
9270
|
+
var nthString = parsed[i].substring(parsed[i].indexOf('#') + 1);
|
|
9271
|
+
assert(/^[1-5]$/.test(nthString), 'DOW nth weekday must be >= 1 and <= 5');
|
|
9272
|
+
}
|
|
9269
9273
|
if (!isNaN(parseInt(parsed[i], 10))) {
|
|
9270
9274
|
var dayOfWeek = parseInt(parsed[i], 10);
|
|
9271
9275
|
assert(dayOfWeek >= 0 && dayOfWeek <= 6, dayOfWeekStartIndexZero ? 'DOW part must be >= 0 and <= 6' : 'DOW part must be >= 1 and <= 7');
|