From 09724b5b61fcea2da3e009b4e093c1218e758eee Mon Sep 17 00:00:00 2001
From: George Walter Colgrove IV <georgecolgrove@outlook.com>
Date: Wed, 18 Sep 2019 16:05:24 -0400
Subject: [PATCH] Fix formatVersion

Before
77.0.3865 ->  77.0.386
After
77.0.3865 -> 77.0.3865
---
 lib/provider/chromedriver.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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) {