You are here

protected function EmailLexer::isUTF8Invalid in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/egulias/email-validator/src/Egulias/EmailValidator/EmailLexer.php \Egulias\EmailValidator\EmailLexer::isUTF8Invalid()

Parameters

$value:

Return value

bool

1 call to EmailLexer::isUTF8Invalid()
EmailLexer::getType in vendor/egulias/email-validator/src/Egulias/EmailValidator/EmailLexer.php
Retrieve token type. Also processes the token value if necessary.

File

vendor/egulias/email-validator/src/Egulias/EmailValidator/EmailLexer.php, line 210

Class

EmailLexer

Namespace

Egulias\EmailValidator

Code

protected function isUTF8Invalid($value) {
  if (preg_match('/\\p{Cc}+/u', $value)) {
    return true;
  }
  return false;
}