Compare commits

...

2 Commits

Author SHA1 Message Date
Eduardo Gulias Davis 68e418ec08 fix #217 (#266) 2020-09-26 17:48:38 +02:00
Phil Davis ef615f1d74 Minor typos (#265) 2020-09-26 16:40:57 +02:00
4 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/egulias/EmailValidator/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/egulias/EmailValidator/?branch=master)
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/22ba6692-9c02-42e5-a65d-1c5696bfffc6/small.png)](https://insight.sensiolabs.com/projects/22ba6692-9c02-42e5-a65d-1c5696bfffc6)
## Suported RFCs ##
## Supported RFCs ##
This library aims to support:
+3
View File
@@ -198,6 +198,9 @@ class DomainPart extends Parser
$domain .= $this->lexer->token['value'];
$this->lexer->moveNext();
if ($this->lexer->token['type'] === EmailLexer::S_SP) {
throw new CharNotAllowed();
}
} while (null !== $this->lexer->token['type']);
return $domain;
@@ -27,7 +27,7 @@ class DNSCheckValidationTest extends TestCase
['"Fred\ Bloggs"@ietf.org'],
['"Joe.\\Blow"@ietf.org'],
// unicide
// unicode
['ñandu.cl'],
];
}
@@ -106,4 +106,4 @@ class DNSCheckValidationTest extends TestCase
$validation->isValid("example@invalid.example.com", new EmailLexer());
$this->assertEquals($expectedError, $validation->getError());
}
}
}
@@ -167,6 +167,7 @@ class RFCValidationTest extends TestCase
['test@email<'],
['test@email{'],
['test@ '],
['test@example.com []'],
];
}