Problem/Motivation
When entering an email address with a mailto: prefix e.g mailto:drupal@example.com the email matcher doesn't see this as a valid email address.
Proposed resolution
In EmailMatcher, strip the mailto: prefix and check if the email address is valid.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3223914-2.patch | 2.55 KB | jeroent |
Comments
Comment #2
jeroentAdded the code from #2712951: Linkit for Link field and added a kernel test for the email matcher.
Comment #4
jeroentComment #5
solideogloria commentedThe patch applies cleanly and works on 6.0.0-beta4.
The test errors above are for PHP 7.0, since return types aren't supported in that version. Since only PHP 7.4+ is supported, this isn't a problem. I think this is a great addition.
Comment #6
solideogloria commentedComment #8
mark_fullmerAgreed! This makes good sense. Thanks so much for the contribution! Added to the 6.1.x branch, which is compatible with Drupal 10.1+