Skip to content

Commit

Permalink
Match wrangler version even if multiline output cloudflare#277
Browse files Browse the repository at this point in the history
  • Loading branch information
acusti authored Jul 11, 2024
1 parent 3ea6e3f commit 915a1ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down

0 comments on commit 915a1ae

Please sign in to comment.