From 919651d9cc35bbe96d2e8fe550dc6e49e2d794a1 Mon Sep 17 00:00:00 2001 From: Gellipapa Date: Sun, 13 Oct 2024 16:24:47 +0200 Subject: [PATCH] Update bump-web-version.js --- .github/actions/bump-web-version.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/actions/bump-web-version.js b/.github/actions/bump-web-version.js index 620cc6d..15272ef 100644 --- a/.github/actions/bump-web-version.js +++ b/.github/actions/bump-web-version.js @@ -7,8 +7,11 @@ const newVersion = version.replace("v", ""); const results = replace.sync({ files: "fxmanifest.lua", - from: /\bversion\s+(.*)$/gm, - to: `version '${newVersion}'`, + from: [ + /\bversion\((['"])(.*?)\1\)/gm, + /\bversion\s+(.*)$/gm + ], + to: `version('${newVersion}')`, }); -console.log(results) +console.log(results);