mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-05 17:07:46 +08:00
6 lines
229 B
TypeScript
6 lines
229 B
TypeScript
export function formatDisplayVersion(version: string): string {
|
|
const normalized = version.trim()
|
|
if (!normalized) return ''
|
|
return normalized.startsWith('v') || normalized.startsWith('V') ? normalized : `v${normalized}`
|
|
}
|