mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-12 08:13:26 +01:00
Merge branch 'revised_source_json'
# Conflicts: # AltStore.xcodeproj/project.pbxproj # AltStore/App Detail/AppContentViewController.swift # AltStore/App Detail/AppViewController.swift # AltStore/Base.lproj/Main.storyboard # AltStoreCore/Model/DatabaseManager.swift
This commit is contained in:
31
AltStoreCore/Extensions/Regex+Permissions.swift
Normal file
31
AltStoreCore/Extensions/Regex+Permissions.swift
Normal file
@@ -0,0 +1,31 @@
|
||||
//
|
||||
// Regex+Permissions.swift
|
||||
// AltStore
|
||||
//
|
||||
// Created by Riley Testut on 10/10/23.
|
||||
// Copyright © 2023 Riley Testut. All rights reserved.
|
||||
//
|
||||
|
||||
import RegexBuilder
|
||||
|
||||
@available(iOS 16, *)
|
||||
public extension Regex where Output == (Substring, Substring)
|
||||
{
|
||||
static var privacyPermission: some RegexComponent<(Substring, Substring)> {
|
||||
Regex {
|
||||
Optionally {
|
||||
"NS"
|
||||
}
|
||||
|
||||
// Capture permission "name"
|
||||
Capture {
|
||||
OneOrMore(.anyGraphemeCluster)
|
||||
}
|
||||
|
||||
"UsageDescription"
|
||||
|
||||
// Optional suffix
|
||||
Optionally(OneOrMore(.anyGraphemeCluster))
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user