mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Remove OAuthSwift and its dependencies.
This commit is contained in:
@@ -17,7 +17,13 @@ extension URL {
|
||||
|
||||
/// Percent encoded `mailto` URL for use with `canOpenUrl`. If the URL doesn't contain the `mailto` scheme, this is `nil`.
|
||||
var percentEncodedEmailAddress: URL? {
|
||||
scheme == "mailto" ? self.string.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed)?.url : nil
|
||||
guard scheme == "mailto" else {
|
||||
return nil
|
||||
}
|
||||
guard let urlString = absoluteString.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed) else {
|
||||
return nil
|
||||
}
|
||||
return URL(string: urlString)
|
||||
}
|
||||
|
||||
/// Reverse chronological list of release notes.
|
||||
|
||||
Reference in New Issue
Block a user