We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7234b86 commit 8dad2b7Copy full SHA for 8dad2b7
scripts/build/index.js
@@ -98,7 +98,15 @@ export const applyMirroring = (feature) => {
98
const getPreviousVersion = (browser, version) => {
99
if (typeof version === 'string' && !version.startsWith('≤')) {
100
const browserVersions = Object.keys(bcd.browsers[browser].releases).sort(
101
- compareVersions,
+ (a, b) => {
102
+ if (a === 'preview') {
103
+ return 1;
104
+ }
105
+ if (b === 'preview') {
106
+ return -1;
107
108
+ return compareVersions(a, b);
109
+ },
110
);
111
const currentVersionIndex = browserVersions.indexOf(version);
112
if (currentVersionIndex > 0) {
0 commit comments