Merge pull request #116 from racer1988/fixemailissue

fix #115: support for longer domain names from ICANN
This commit is contained in:
David Patterson 2016-05-13 14:02:12 -05:00
commit ca7ec31141
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.