From 3fe5faf5f9275186358478a57b179370061bfbb5 Mon Sep 17 00:00:00 2001 From: skjnldsv Date: Tue, 3 Sep 2024 13:02:03 +0200 Subject: [PATCH] fix: only keep major as server version Signed-off-by: skjnldsv --- webpack.common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webpack.common.js b/webpack.common.js index a3d6efbe95510..1df53a986bdb9 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -16,7 +16,7 @@ const WebpackSPDXPlugin = require('./build/WebpackSPDXPlugin.js') const modules = require('./webpack.modules.js') -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 isDev = process.env.NODE_ENV === 'development' const formatOutputFromModules = (modules) => {