From af2d9e7eb85f3d167566aa008172bd0ecd7dde9c Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sun, 13 Nov 2022 18:24:46 -0500 Subject: [PATCH] Fix pleroma version detection --- Tusker/API/InstanceFeatures.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tusker/API/InstanceFeatures.swift b/Tusker/API/InstanceFeatures.swift index 1ac5d2ab..1f2b3760 100644 --- a/Tusker/API/InstanceFeatures.swift +++ b/Tusker/API/InstanceFeatures.swift @@ -10,7 +10,7 @@ import Foundation import Pachyderm struct InstanceFeatures { - private static let pleromaVersionRegex = try! NSRegularExpression(pattern: "\\(compatible; Pleroma (.*)\\)") + private static let pleromaVersionRegex = try! NSRegularExpression(pattern: "\\(compatible; pleroma (.*)\\)", options: .caseInsensitive) private(set) var instanceType = InstanceType.mastodon private(set) var version: Version?