From 4ee179aa931a5fa325ce17b7f9d743e6ab612e26 Mon Sep 17 00:00:00 2001 From: Kye Maloy Date: Wed, 8 Aug 2018 12:59:42 +0100 Subject: [PATCH] fixed error --- Sources/CryptorRSA/CryptorRSAKey.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/CryptorRSA/CryptorRSAKey.swift b/Sources/CryptorRSA/CryptorRSAKey.swift index ec7c94d..9f863b5 100644 --- a/Sources/CryptorRSA/CryptorRSAKey.swift +++ b/Sources/CryptorRSA/CryptorRSAKey.swift @@ -698,7 +698,7 @@ public extension CryptorRSA { #else let keys = matches.flatMap { result -> PublicKey? in - let match = result.rangeAt( 1) + let match = result.range(at: 1) let start = pemString.index(pemString.startIndex, offsetBy: match.location) let end = pemString.index(start, offsetBy: match.length)