diff --git a/lib/provider/chromedriver.ts b/lib/provider/chromedriver.ts index 95c96973..f6802d96 100644 --- a/lib/provider/chromedriver.ts +++ b/lib/provider/chromedriver.ts @@ -260,7 +260,7 @@ export function matchBinaries(ostype: string): RegExp|null { * @param version The actual version. */ export function formatVersion(version: string): string|null { - const newRegex = /([0-9]*\.[0-9]*\.[0-9]*).[0-9]*/g; + const newRegex = /([0-9]*\.[0-9]*\.[0-9]*)(\.[0-9]*)?/g; try { const exec = newRegex.exec(version); if (exec) {