We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbf2498 commit f607c45Copy full SHA for f607c45
lib/compute-download-urls.js
@@ -288,7 +288,13 @@ async function getLastChromedriverVersionFromMajor(version) {
288
},
289
290
}).json();
291
- const versionsWithMajor = response.versions.filter(
+
292
+ const exactMatch = response.versions.find((f) => f.version === version && 'chromedriver' in f.downloads);
293
+ // If exact match is found, return it
294
+ if (exactMatch) {
295
+ return exactMatch;
296
+ }
297
+ const versionsWithMajor = response.body.versions.filter(
298
(f) =>
299
validateMajorVersionPrefix(f.version) === validateMajorVersionPrefix(version) && 'chromedriver' in f.downloads
300
);
0 commit comments