From 915a1ae24bf3919b55cce7d7516e050121f88ad8 Mon Sep 17 00:00:00 2001 From: Andrew Patton Date: Thu, 11 Jul 2024 11:34:09 -0700 Subject: [PATCH] Match wrangler version even if multiline output #277 --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 3e2df448..c942dd35 100755 --- a/src/index.ts +++ b/src/index.ts @@ -104,7 +104,7 @@ async function installWrangler() { // `3.48.0` const versionMatch = stdout.match(/wrangler (\d+\.\d+\.\d+)/) ?? - stdout.match(/^(\d+\.\d+\.\d+)/); + stdout.match(/^(\d+\.\d+\.\d+)/m); if (versionMatch) { installedVersion = versionMatch[1]; }