From 555cc9b3145ea2a94aeb34eec30eb966154b16f8 Mon Sep 17 00:00:00 2001 From: Edgard Date: Wed, 2 Aug 2023 08:19:20 -0300 Subject: [PATCH] ci: Fixed proto-extract --- proto-extract/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proto-extract/index.js b/proto-extract/index.js index 81a73c0..c780612 100644 --- a/proto-extract/index.js +++ b/proto-extract/index.js @@ -55,7 +55,7 @@ async function findAppModules() { console.error('Found source JS URL:', bootstrapQRURL) const qrData = await request.get(bootstrapQRURL, ua) - const waVersion = qrData.match(/appVersion:"(\d\.\d+\.\d+)"/)[1] + const waVersion = qrData.match(/(?:appVersion:|VERSION_STR=)"(\d\.\d+\.\d+)"/)[1] console.log('Current version:', waVersion) // This one list of types is so long that it's split into two JavaScript declarations. // The module finder below can't handle it, so just patch it manually here.