Skip to content

Commit 09724b5

Browse files
Fix formatVersion
Before 77.0.3865 -> 77.0.386 After 77.0.3865 -> 77.0.3865
1 parent a30f0fe commit 09724b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/provider/chromedriver.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ export function matchBinaries(ostype: string): RegExp|null {
260260
* @param version The actual version.
261261
*/
262262
export function formatVersion(version: string): string|null {
263-
const newRegex = /([0-9]*\.[0-9]*\.[0-9]*).[0-9]*/g;
263+
const newRegex = /([0-9]*\.[0-9]*\.[0-9]*)(\.[0-9]*)?/g;
264264
try {
265265
const exec = newRegex.exec(version);
266266
if (exec) {

0 commit comments

Comments
 (0)