From b211b55043d6cbd482d40ac5fda147448edc256f Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Wed, 2 Nov 2022 17:29:58 -0600 Subject: [PATCH] fix the version fix for 5.6.0-RC1 * look for number instead of string --- lib/antora/extensions/version-fix.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/antora/extensions/version-fix.js b/lib/antora/extensions/version-fix.js index 788d2b0192..eeba12e12b 100644 --- a/lib/antora/extensions/version-fix.js +++ b/lib/antora/extensions/version-fix.js @@ -4,7 +4,7 @@ module.exports.register = function () { this.once('contentAggregated', ({ contentAggregate }) => { contentAggregate.forEach((componentVersionBucket) => { if (componentVersionBucket.prerelease === 'true') componentVersionBucket.prerelease = true - if (!componentVersionBucket.name && componentVersionBucket.displayVersion === '5.6') { + if (!componentVersionBucket.name && componentVersionBucket.displayVersion === 5.6) { componentVersionBucket.name = 'ROOT' componentVersionBucket.version = '5.6.0-RC1' delete componentVersionBucket.displayVersion