cronstrue 3.28.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.
package/dist/cronstrue-i18n.js
CHANGED
|
@@ -48,10 +48,10 @@ var CronParser = (function () {
|
|
|
48
48
|
};
|
|
49
49
|
CronParser.prototype.parseSpecial = function (expression) {
|
|
50
50
|
var specialExpressions = {
|
|
51
|
-
'@yearly': '0 0 1
|
|
52
|
-
'@annually': '0 0 1
|
|
51
|
+
'@yearly': '0 0 1 JAN *',
|
|
52
|
+
'@annually': '0 0 1 JAN *',
|
|
53
53
|
'@monthly': '0 0 1 * *',
|
|
54
|
-
'@weekly': '0 0 * *
|
|
54
|
+
'@weekly': '0 0 * * SUN',
|
|
55
55
|
'@daily': '0 0 * * *',
|
|
56
56
|
'@midnight': '0 0 * * *',
|
|
57
57
|
'@hourly': '0 * * * *',
|
|
@@ -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) {
|