mirror of
https://github.com/egulias/EmailValidator.git
synced 2026-08-30 03:59:20 +00:00
Scrutinized
This commit is contained in:
@@ -4,6 +4,9 @@ EmailValidator
|
||||
#Installation#
|
||||
Install via composer.
|
||||
|
||||
##Build Status##
|
||||
[](https://travis-ci.org/egulias/EmailValidator)
|
||||
|
||||
#Usage#
|
||||
|
||||
Simple example:
|
||||
|
||||
@@ -189,7 +189,6 @@ class EmailParser extends AbstractParser
|
||||
$this->warnings[] = EmailValidator::RFC5322_IPV6_COLONSTRT;
|
||||
}
|
||||
} catch (\Exception $e) {
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -246,7 +245,6 @@ class EmailParser extends AbstractParser
|
||||
|
||||
$maxGroups = 8;
|
||||
$matchesIP = array();
|
||||
$index = 0;
|
||||
|
||||
// Extract IPv4 part from the end of the address-literal (if there is one)
|
||||
if (preg_match(
|
||||
@@ -276,7 +274,6 @@ class EmailParser extends AbstractParser
|
||||
$matchesIP = explode(':', $IPv6);
|
||||
$groupCount = count($matchesIP);
|
||||
$colons = strpos($IPv6, '::');
|
||||
$matches = array();
|
||||
|
||||
if (count(preg_grep('/^[0-9A-Fa-f]{0,4}$/', $matchesIP, PREG_GREP_INVERT)) !== 0) {
|
||||
// Check for unmatched characters
|
||||
|
||||
@@ -226,7 +226,7 @@ class EmailValidator
|
||||
!in_array(self::DNSWARN_NO_MX_RECORD, $this->warnings))
|
||||
) {
|
||||
|
||||
if (in_array(RFC5322_DOMAINLITERAL)) {
|
||||
if (in_array($this->warnings, RFC5322_DOMAINLITERAL)) {
|
||||
$this->warnings[] = self::RFC5321_TLD;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user