From 77c00e27de96e4e9c5d1f59502fd9f5632855a82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6?= Date: Tue, 3 Sep 2024 21:34:16 +0200 Subject: [PATCH] fix: only keep major as server version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ --- webpack.common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webpack.common.js b/webpack.common.js index ee6a4953169..aacc37af821 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -9,7 +9,7 @@ const WorkboxPlugin = require('workbox-webpack-plugin') const modules = require('./webpack.modules.js') const { readFileSync } = require('fs') -const appVersion = readFileSync('./version.php').toString().match(/OC_VersionString[^']+'([^']+)/)?.[1] ?? 'unknown' +const appVersion = readFileSync('./version.php').toString().match(/OC_Version.+\[([0-9]{2})/)?.[1] ?? 'unknown' const formatOutputFromModules = (modules) => { // merge all configs into one object, and use AppID to generate the fileNames