cronstrue 3.35.0 → 3.36.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 +5 -2
- package/dist/cronstrue-i18n.min.js +1 -1
- package/dist/cronstrue.js +4 -1
- package/dist/cronstrue.min.js +1 -1
- package/locales/vi.js +1 -1
- package/locales/vi.min.js +1 -1
- package/package.json +1 -1
package/dist/cronstrue-i18n.js
CHANGED
|
@@ -684,6 +684,9 @@ var ExpressionDescriptor = (function () {
|
|
|
684
684
|
if (isSegmentRangeWithoutIncrement) {
|
|
685
685
|
currentDescriptionContent = currentDescriptionContent.replace(", ", "");
|
|
686
686
|
}
|
|
687
|
+
else if (i > 0 && currentDescriptionContent.startsWith(", ")) {
|
|
688
|
+
currentDescriptionContent = currentDescriptionContent.substring(2);
|
|
689
|
+
}
|
|
687
690
|
descriptionContent += currentDescriptionContent;
|
|
688
691
|
}
|
|
689
692
|
else if (!doesExpressionContainIncrement) {
|
|
@@ -691,7 +694,7 @@ var ExpressionDescriptor = (function () {
|
|
|
691
694
|
}
|
|
692
695
|
else {
|
|
693
696
|
var segmentDescription = this.getSegmentDescription(segments[i], allDescription, getSingleItemDescription, getIncrementDescriptionFormat, getRangeDescriptionFormat, getDescriptionFormat);
|
|
694
|
-
if (segmentDescription && segmentDescription.startsWith(", ")) {
|
|
697
|
+
if (i > 0 && segmentDescription && segmentDescription.startsWith(", ")) {
|
|
695
698
|
segmentDescription = segmentDescription.substring(2);
|
|
696
699
|
}
|
|
697
700
|
descriptionContent += segmentDescription;
|
|
@@ -8739,7 +8742,7 @@ var vi = (function () {
|
|
|
8739
8742
|
return ", và hơn %s";
|
|
8740
8743
|
};
|
|
8741
8744
|
vi.prototype.commaEveryX0Months = function () {
|
|
8742
|
-
return ", mỗi
|
|
8745
|
+
return ", mỗi %s tháng";
|
|
8743
8746
|
};
|
|
8744
8747
|
vi.prototype.commaOnlyInX0 = function () {
|
|
8745
8748
|
return ", chỉ trong %s";
|