Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Made possible to use newer versions of altair over cdn #874

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ private Map<String, String> getReplacements() {
private boolean isJsSuffixAdded() {
if (nonNull(altairProperties.getCdn().getVersion())) {
String[] versionValues = altairProperties.getCdn().getVersion().split("\\.");
return isNumeric(versionValues[0]) && parseInt(versionValues[0]) >= 4;
return isNumeric(versionValues[0]) && parseInt(versionValues[0]) >= 4
// -es2018 version is not published for versions 4.2.0 onwards
&& versionValues.length > 2 && isNumeric(versionValues[1]) && parseInt(versionValues[1]) < 2;
}
return false;
}
Expand Down