Support s tags version parsing (#6484)

Signed-off-by: Alexey Zinoviev <alexey.zinoviev@xored.com>
This commit is contained in:
Alexey Zinoviev 2024-09-05 12:35:41 +04:00 committed by GitHub
parent b211bbec7b
commit 286b7e29f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,7 +19,7 @@ exec('git describe --tags --abbrev=0', (err, stdout, stderr) => {
if (err !== null) {
console.log('"0.6.0"')
}
const rawVersion = stdout.trim().replace('v', '').split('.')
const rawVersion = stdout.trim().replace('v', '').replace('s', '').split('.')
if (rawVersion.length === 3) {
const version = {
major: parseInt(rawVersion[0]),