feat: Improved sync editor
All checks were successful
Deploy Brew Application / deploy (push) Successful in 10s

This commit is contained in:
2026-06-06 19:18:30 +05:30
parent a0b1efd242
commit 4e234d075f
5 changed files with 112 additions and 19 deletions

View File

@@ -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;