mirror of
https://github.com/egulias/EmailValidator.git
synced 2026-08-20 08:30:39 +00:00
committed by
GitHub
parent
ef615f1d74
commit
68e418ec08
@@ -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;
|
||||
|
||||
@@ -167,6 +167,7 @@ class RFCValidationTest extends TestCase
|
||||
['test@email<'],
|
||||
['test@email{'],
|
||||
['test@ '],
|
||||
['test@example.com []'],
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user