Importing: Use case-insensitive comparison for zip extension

This commit is contained in:
Roopesh Chander 2019-02-25 16:16:58 +05:30
parent 1da882785e
commit d3299ef94e
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ import Foundation
class TunnelImporter {
static func importFromFile(url: URL, into tunnelsManager: TunnelsManager, sourceVC: AnyObject?, errorPresenterType: ErrorPresenterProtocol.Type, completionHandler: (() -> Void)? = nil) {
if url.pathExtension == "zip" {
if url.pathExtension.lowercased() == "zip" {
ZipImporter.importConfigFiles(from: url) { result in
if let error = result.error {
errorPresenterType.showErrorAlert(error: error, from: sourceVC)