diff --git a/Parsedown.php b/Parsedown.php index f4ca1d6..1e9a627 100755 --- a/Parsedown.php +++ b/Parsedown.php @@ -1069,7 +1069,7 @@ class Parsedown protected function identifyEmailTag($excerpt) { - if (strpos($excerpt, '>') !== false and preg_match('/<(\S+?@\S+?)>/', $excerpt, $matches)) + if (strpos($excerpt, '>') !== false and preg_match('/^<(\S+?@\S+?)>/', $excerpt, $matches)) { return array( 'extent' => strlen($matches[0]),