You are here

protected function DomainPart::checkLabelLength in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/egulias/email-validator/src/Egulias/EmailValidator/Parser/DomainPart.php \Egulias\EmailValidator\Parser\DomainPart::checkLabelLength()
1 call to DomainPart::checkLabelLength()
DomainPart::doParseDomainPart in vendor/egulias/email-validator/src/Egulias/EmailValidator/Parser/DomainPart.php

File

vendor/egulias/email-validator/src/Egulias/EmailValidator/Parser/DomainPart.php, line 294

Class

DomainPart

Namespace

Egulias\EmailValidator\Parser

Code

protected function checkLabelLength($prev) {
  if ($this->lexer->token['type'] === EmailLexer::S_DOT && $prev['type'] === EmailLexer::GENERIC && strlen($prev['value']) > 63) {
    $this->warnings[] = EmailValidator::RFC5322_LABEL_TOOLONG;
  }
}