Hi. I noticed that the output is broken in case the is enclosed around something not being an email-address. In my case: not page content was shown at all.

E-Mail works
but
Some name or other doesn't work! (Space character)

The regex pattern is quite complex. In my opinion to solve this issue, maybe a second preg_match is neccessary.
If the $mail part is changed the general detection of email-addresses would not work anymore. Any ideas?

Christian

Comments

subetha_de’s picture

Sorry, my post is not readable very well ;)

works:

<a href="mailto:some@email.address.test">E-Mail</a>  

doesn't work:

<a href="mailto:some@email.address.test">Some name or other</a> 

I understand the second example doesn't work because of the space character is not allowed in the
$mail part.

Crell’s picture

Status: Active » Closed (cannot reproduce)

This works fine in my testing.

Crell’s picture

Status: Closed (cannot reproduce) » Active

No, wait, I'm wrong. It is skipping the address. Blargh.

Crell’s picture

Category: feature » bug
Crell’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.