Fix pleroma version detection

This commit is contained in:
Shadowfacts 2022-11-13 18:24:46 -05:00
parent 06ad46e639
commit af2d9e7eb8
1 changed files with 1 additions and 1 deletions

View File

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