cronstrue 3.44.0 → 3.45.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 +3 -2
- package/dist/cronstrue-i18n.min.js +1 -1
- package/dist/cronstrue.js +1 -1
- package/dist/cronstrue.min.js +1 -1
- package/dist/i18n/locales/pt_BR.d.ts +2 -2
- package/locales/bg.js +2 -1
- package/locales/bg.min.js +1 -1
- package/package.json +1 -1
package/dist/cronstrue-i18n.js
CHANGED
|
@@ -568,7 +568,7 @@ var ExpressionDescriptor = (function () {
|
|
|
568
568
|
format = _this.i18n.commaOnThe(dayOfWeekOfMonthNumber, dayOfWeek).trim() + _this.i18n.spaceX0OfTheMonth();
|
|
569
569
|
}
|
|
570
570
|
else if (s.indexOf("L") > -1) {
|
|
571
|
-
format = _this.i18n.commaOnTheLastX0OfTheMonth(s.replace("L", ""));
|
|
571
|
+
format = _this.i18n.commaOnTheLastX0OfTheMonth(s.split(",")[0].replace("L", ""));
|
|
572
572
|
}
|
|
573
573
|
else {
|
|
574
574
|
var domSpecified = _this.expressionParts[3] != "*";
|
|
@@ -1874,8 +1874,9 @@ var getPhraseByPlural = function (str, words) {
|
|
|
1874
1874
|
return strAsNumber < 2 ? words[0] : words[1];
|
|
1875
1875
|
};
|
|
1876
1876
|
var getPhraseByDayOfWeek = function (str, words) {
|
|
1877
|
+
var _a;
|
|
1877
1878
|
var strAsNumber = str != null ? Number(str) : 0;
|
|
1878
|
-
return words[[1, 0, 0, 1, 0, 0, 1][strAsNumber]];
|
|
1879
|
+
return words[(_a = [1, 0, 0, 1, 0, 0, 1][strAsNumber]) !== null && _a !== void 0 ? _a : 0];
|
|
1879
1880
|
};
|
|
1880
1881
|
var getNumberEnding = function (str, gender) {
|
|
1881
1882
|
var strAsNumber = str != null ? Number(str) : 1;
|