mirror of
https://github.com/cloudflare/wrangler-action.git
synced 2024-10-06 20:43:25 +02:00
Match wrangler version even if multiline output #277
This commit is contained in:
parent
3ea6e3f132
commit
915a1ae24b
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue