Match wrangler version even if multiline output #277

This commit is contained in:
Andrew Patton 2024-07-11 11:34:09 -07:00 committed by GitHub
parent 3ea6e3f132
commit 915a1ae24b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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];
}