fix #115: support for longer domain names from ICANN
This commit is contained in:
parent
839ef5202e
commit
a094156445
|
|
@ -13,7 +13,7 @@ import Foundation
|
|||
public class EmailRule: RegexRule {
|
||||
|
||||
/// Regular express string to be used in validation.
|
||||
static let regex = "[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,6}"
|
||||
static let regex = "[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,}"
|
||||
|
||||
/**
|
||||
Initializes an `EmailRule` object to validate an email text field.
|
||||
|
|
|
|||
Loading…
Reference in New Issue