fix #115: support for longer domain names from ICANN

This commit is contained in:
Marco Pappalardo 2016-05-12 10:45:56 +02:00
parent 839ef5202e
commit a094156445
1 changed files with 1 additions and 1 deletions

View File

@ -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.