diff options
author | skjnldsv <skjnldsv@protonmail.com> | 2024-09-03 13:02:03 +0200 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-09-03 17:51:55 +0200 |
commit | 3fe5faf5f9275186358478a57b179370061bfbb5 (patch) | |
tree | d4678dd2f6042d66a3cfa63c4c325cc113fde7d3 /webpack.common.js | |
parent | f9fcc5b17025e34c42ad53fa4401e8b79064c75f (diff) | |
download | nextcloud-server-3fe5faf5f9275186358478a57b179370061bfbb5.tar.gz nextcloud-server-3fe5faf5f9275186358478a57b179370061bfbb5.zip |
fix: only keep major as server version
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Diffstat (limited to 'webpack.common.js')
-rw-r--r-- | webpack.common.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/webpack.common.js b/webpack.common.js index a3d6efbe955..1df53a986bd 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) => { |