Skip to content

Commit

Permalink
Merge pull request #278 from acusti/patch-1
Browse files Browse the repository at this point in the history
When checking for existing wrangler install, match wrangler version even if multiline output
  • Loading branch information
Maximo-Guk authored Oct 7, 2024
2 parents 84316ca + 47d51f2 commit de0526e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/gentle-cobras-move.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"wrangler-action": patch
---

fix: Detect existing wrangler install even when wrangler version output is multiline
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 de0526e

Please sign in to comment.