diff --git a/OpenHaystack/OpenHaystack/HaystackApp/UpdateCheckController.swift b/OpenHaystack/OpenHaystack/HaystackApp/UpdateCheckController.swift index 0368c0c..f136909 100644 --- a/OpenHaystack/OpenHaystack/HaystackApp/UpdateCheckController.swift +++ b/OpenHaystack/OpenHaystack/HaystackApp/UpdateCheckController.swift @@ -90,8 +90,19 @@ public struct UpdateCheckController { /// - installedVersion: The currently installed version /// - Returns: .older when a newer version is available. .newer when the installed version is newer .same, if both versions are equal internal static func compareVersions(availableVersion: String, installedVersion: String) -> VersionCompare { - let availableVersionSplit = availableVersion.split(separator: ".") - let installedVersionSplit = installedVersion.split(separator: ".") + // Handle dash extensions + var availableVersionTrim = availableVersion + var installedVersionTrim = installedVersion + + if let dashIndex = availableVersion.firstIndex(of: "-") { + availableVersionTrim = String(availableVersion[..