You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
355 B

// Copyright © 2015 Abhishek Banthia
import Cocoa
extension String {
func filteredName() -> String {
var filteredAddress = self
let commaSeperatedComponents = components(separatedBy: ",")
if let first = commaSeperatedComponents.first {
filteredAddress = first
}
return filteredAddress
}
}