feat: Improved sync editor
All checks were successful
Deploy Brew Application / deploy (push) Successful in 10s
All checks were successful
Deploy Brew Application / deploy (push) Successful in 10s
This commit is contained in:
@@ -25,12 +25,7 @@ function getGitVersion() {
|
||||
return `v0.0.0-${raw}`;
|
||||
}
|
||||
|
||||
// If it's a tag + commits + hash (e.g., v0.1.1-5-g4a9f6b6)
|
||||
// Format it cleanly to v0.1.1-4a9f6b6
|
||||
const match = raw.match(/^(.*)-\d+-g([0-9a-f]+)$/);
|
||||
if (match) {
|
||||
return `${match[1]}-${match[2]}`;
|
||||
}
|
||||
// Otherwise, return raw (e.g., v0.1.1-5-g4a9f6b6 or v1.2.0)
|
||||
|
||||
// Exact tag (e.g., v1.2.0)
|
||||
return raw;
|
||||
|
||||
Reference in New Issue
Block a user