When the user enters an email link in the format:
<a href="mailto:info@email.com ">info@email.com</a>
or
<a href="mailto:info2@email.com">info2@emailcom </a>
(please note the whitespace at the end of the email addresses in these examples)
the spamspan code fails displaying the following respectively:
<a href="mailto:<span class="spamspan"><span class="u">info</span> [at] <span class="d">email [dot] com</span></span> "><span class="spamspan"><span class="u">info</span> [at] <span class="d">email [dot] com</span></span></a>
and
<span class="spamspan"><span class="u">info2</span> [at] <span class="d">email [dot] com</span><span class="t"> (<span class="spamspan"><span class="u">info2</span> [at] <span class="d">email [dot] com</span></span> )</span></span>
Comments
Comment #1
luketarplin commentedI am also experiencing this issue, as mentioned whitespaces in the text wrapped by a mailto link seems to produce incorrect results.... possibly a bad regex?
Comment #2
peterx commentedA change like this should be developed for the current version, Drupal 7, then backported to Drupal 6. I am currently the only developer working on any version and I am not going to apply any of the several requests to change the regular expressions because they will all crash into each other.
If you can find a regular expression guru to make some changes and document them, we can make the requested changes one at a time with tests in between.