diff --git a/Telegram-iOS UITests/SnapshotHelper.swift b/Telegram-iOS UITests/SnapshotHelper.swift index 77b3ede31e..3ba8f8cdfb 100644 --- a/Telegram-iOS UITests/SnapshotHelper.swift +++ b/Telegram-iOS UITests/SnapshotHelper.swift @@ -107,7 +107,7 @@ open class Snapshot: NSObject { do { let launchArguments = try String(contentsOf: path, encoding: String.Encoding.utf8) let regex = try NSRegularExpression(pattern: "(\\\".+?\\\"|\\S+)", options: []) - let matches = regex.matches(in: launchArguments, options: [], range: NSRange(location:0, length:launchArguments.characters.count)) + let matches = regex.matches(in: launchArguments, options: [], range: NSRange(location:0, length: launchArguments.count)) let results = matches.map { result -> String in (launchArguments as NSString).substring(with: result.range) } diff --git a/submodules/TelegramUI b/submodules/TelegramUI index 7d2836789e..935b095c20 160000 --- a/submodules/TelegramUI +++ b/submodules/TelegramUI @@ -1 +1 @@ -Subproject commit 7d2836789e223b5bb772a9ebb90d3847bd05f839 +Subproject commit 935b095c2035a4c17e4571f3e58517f4629e717f