mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-25 01:01:21 +01:00
18 lines
325 B
Swift
18 lines
325 B
Swift
//
|
|
// String+RSParser.swift
|
|
// RSParser
|
|
//
|
|
// Created by Nate Weaver on 2020-01-19.
|
|
// Copyright © 2020 Ranchero Software, LLC. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
extension String {
|
|
|
|
var nilIfEmptyOrWhitespace: String? {
|
|
return self.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty ? nil : self
|
|
}
|
|
|
|
}
|