Skip to content

Commit 9a73fee

Browse files
fix: email utils
1 parent bbf9f7a commit 9a73fee

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • FirebaseSwiftUI/FirebaseAuthSwiftUI/Sources/FirebaseAuthSwiftUI/Utils
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
import Foundation
2+
13
class EmailUtils {
24
static let emailRegex = ".+@([a-zA-Z0-9\\-]+\\.)+[a-zA-Z0-9]{2,63}"
35

46
static func isValidEmail(_ email: String) -> Bool {
57
let emailPredicate = NSPredicate(format: "SELF MATCHES %@", emailRegex)
68
return emailPredicate.evaluate(with: email)
79
}
8-
}
10+
}

0 commit comments

Comments
 (0)