From 563c57da42ad9946a289e4f6f5b7e885442e3203 Mon Sep 17 00:00:00 2001 From: Sajid Anwar Date: Sun, 5 Apr 2015 16:57:57 -0700 Subject: [PATCH] Accidentally used a 10.10 only method! --- radiant-player-mac/Updates/UpdateChecker.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radiant-player-mac/Updates/UpdateChecker.m b/radiant-player-mac/Updates/UpdateChecker.m index f7c35aad..1674e457 100644 --- a/radiant-player-mac/Updates/UpdateChecker.m +++ b/radiant-player-mac/Updates/UpdateChecker.m @@ -38,7 +38,7 @@ + (NSString *)latestVersionFromGithub:(NSString *)releaseChannel NSString *version = [rel objectForKey:@"name"]; // Specific to this release chnnel, or is the stable channel (doesn't contain a -beta). - if ([version hasSuffix:releaseChannel] || ![version containsString:@"-"]) + if ([version hasSuffix:releaseChannel] || [version rangeOfString:@"-"].location == NSNotFound) { return [version substringFromIndex:1]; }