Skip to content

Commit 2f18bd5

Browse files
author
Oleksandr_Travienikov
committed
Revert "fix(chromedriver): don't ignore patch version"
This reverts commit 6a95aa4.
1 parent 6a95aa4 commit 2f18bd5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/binaries/chrome_xml.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -175,12 +175,11 @@ export function getValidSemver(version: string): string {
175175
// no-op: is this is not valid, do not throw here.
176176
}
177177
// This supports downloading 74.0.3729.6
178-
// Removing the 0 after 74, to keep patch version of webdriver
179178
try {
180-
const newRegex = /(\d+.)\d+.(\d+.\d+)/g;
179+
const newRegex = /(\d+.\d+.\d+).\d+/g;
181180
const exec = newRegex.exec(version);
182181
if (exec) {
183-
lookUpVersion = exec[1] + exec[2];
182+
lookUpVersion = exec[1];
184183
}
185184
} catch (_) {
186185
// no-op: if this does not work, use the other regex pattern.

0 commit comments

Comments
 (0)