diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2024-09-03 21:34:16 +0200 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2024-09-03 19:35:51 +0000 |
commit | 77c00e27de96e4e9c5d1f59502fd9f5632855a82 (patch) | |
tree | cb94ce5365d01c16f56a528afd08085561a57d95 /webpack.common.js | |
parent | f033e32af66c875d136a370cc7985f2907733783 (diff) | |
download | nextcloud-server-77c00e27de96e4e9c5d1f59502fd9f5632855a82.tar.gz nextcloud-server-77c00e27de96e4e9c5d1f59502fd9f5632855a82.zip |
fix: only keep major as server version
Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.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 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 |