Skip to content
This repository was archived by the owner on Sep 2, 2021. It is now read-only.

Commit 5134ea0

Browse files
authored
Merge pull request #224 from adobe/nethip/CombineEntries
Combine newFeature entry with the previous entry in update json, if versionString is the same.
2 parents 12338a5 + 13d3ef6 commit 5134ea0

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

index.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,13 @@ <h5 data-i18n="footer.in-touch.header">Keep in Touch</h5>
462462
var build = data[0][0],
463463
buildName = build.versionString;
464464

465+
// Probe previous entry to see if the update is a dot update,
466+
// in which case combine both the entries.
467+
var prevBuild = data[0][1];
468+
if (prevBuild && prevBuild.versionString && prevBuild.versionString === buildName) {
469+
build.newFeatures = build.newFeatures.concat(prevBuild.newFeatures);
470+
}
471+
465472
if (buildName) {
466473
var buildNum = buildName.match(/([\d.]+)/);
467474
if (buildNum) {

0 commit comments

Comments
 (0)