Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com>
This commit is contained in:
Henrik Storch 2022-05-03 14:50:28 +02:00
Родитель e41d5b2274
Коммит a7642e0ce0
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: EE099EE1223CBB6D
2 изменённых файлов: 1 добавлений и 3 удалений

Просмотреть файл

@ -58,7 +58,6 @@ class UserAgentTests: XCTestCase {
func matches(for regex: String, in text: String) throws -> [NSTextCheckingResult] {
let range = NSRange(location: 0, length: text.utf16.count)
print(regex, text)
let regex = try NSRegularExpression(pattern: regex)
return regex.matches(in: text, range: range)
}

Просмотреть файл

@ -28,7 +28,6 @@ import NCCommunication
import PDFKit
import Accelerate
import CoreMedia
import WebKit
// MARK: - NCUtility
@ -310,7 +309,7 @@ class NCUtility: NSObject {
let userAgent: String = CCUtility.getUserAgent()
if UIDevice.current.userInterfaceIdiom == .phone {
// NOTE: Hardcoded (May 2022)
// Tested for iPhone SE (1st), iOS 12; iPhone Pro Max, iOS 15.4; iPhone X,
// Tested for iPhone SE (1st), iOS 12; iPhone Pro Max, iOS 15.4
// 605.1.15 = WebKit build version
// 15E148 = frozen iOS build number according to: https://chromestatus.com/feature/4558585463832576
return userAgent + " " + "AppleWebKit/605.1.15 Mobile/15E148"