diff --git a/invisimail.module b/invisimail.module index c897236..e250e5a 100644 --- a/invisimail.module +++ b/invisimail.module @@ -127,9 +127,9 @@ function invisimail($string, $format) { // The final pattern. We deal with these as an entire group because invisimail // allows options that require us to deal with both an href and its text // in relation to one another. - $pattern = "@(?:(]*href=['\"](mailto:$mail)['\"][^>]*>)?((?".">(?]*href=['\"](mailto:$mail)['\"][^>]*>(.*?))@$modifiers"; - $pattern_diff_link_text = "@(]*href=['\"](mailto:$mail)['\"][^>]*>(.*?))@$modifiers"; - $pattern_same_link_text = "@(?:(]*href=['\"](mailto:$mail)['\"][^>]*>)?((?".">(?]*href=['\"](mailto:$mail)['\"\?][^>]*>)?((?".">(?]*href=['\"](mailto:$mail)['\"\?][^>]*>(.*?))@$modifiers"; + $pattern_diff_link_text = "@(]*href=['\"](mailto:$mail)['\"\?][^>]*>(.*?))@$modifiers"; + $pattern_same_link_text = "@(?:(]*href=['\"](mailto:$mail)['\"\?][^>]*>)?((?".">(?