Remove redundant properties

This commit is contained in:
Ivan Zinovyev 2016-12-19 18:23:17 +03:00
parent 4b10040099
commit 222db00731
1 changed files with 0 additions and 8 deletions

View File

@ -10,14 +10,6 @@ import Foundation
extension String {
var localized: String {
return NSLocalizedString(self, comment: "")
}
var isMultiline: Bool {
return range(of: "\n") != nil
}
var isValidEmail: Bool {
let emailRegex = "[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,6}"
let emailPredicat = NSPredicate(format: "SELF MATCHES %@", emailRegex)