We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a95aa4 commit 2f18bd5Copy full SHA for 2f18bd5
lib/binaries/chrome_xml.ts
@@ -175,12 +175,11 @@ export function getValidSemver(version: string): string {
175
// no-op: is this is not valid, do not throw here.
176
}
177
// This supports downloading 74.0.3729.6
178
- // Removing the 0 after 74, to keep patch version of webdriver
179
try {
180
- const newRegex = /(\d+.)\d+.(\d+.\d+)/g;
+ const newRegex = /(\d+.\d+.\d+).\d+/g;
181
const exec = newRegex.exec(version);
182
if (exec) {
183
- lookUpVersion = exec[1] + exec[2];
+ lookUpVersion = exec[1];
184
185
} catch (_) {
186
// no-op: if this does not work, use the other regex pattern.
0 commit comments