Drupal service email.validator only validate with @ in string

Created on 27 September 2023, over 1 year ago

Problem/Motivation

Using \Drupal::service('email.validator')->isValid($email) with 'blah@blah' as $email is passing validation.

Steps to reproduce

Try dump(\Drupal::service('email.validator')->isValid('blah@blah')); and it will show true, which is false.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Closed: duplicate

Version

11.0 🔥

Component
Mail 

Last updated 19 days ago

No maintainer
Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024