diff options
Diffstat (limited to '')
-rw-r--r-- | WireGuard/Extensions/String+Base64.swift | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/WireGuard/Extensions/String+Base64.swift b/WireGuard/Extensions/String+Base64.swift deleted file mode 100644 index ae70010..0000000 --- a/WireGuard/Extensions/String+Base64.swift +++ /dev/null @@ -1,14 +0,0 @@ -// -// Copyright © 2018 WireGuard LLC. All rights reserved. -// - -import Foundation - -extension String { - - func isBase64() -> Bool { - let base64Predicate = NSPredicate(format: "SELF MATCHES %@", "^[a-zA-Z0-9+/]{43}=$") - return base64Predicate.evaluate(with: self) - } - -} |