1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00
This commit is contained in:
Emanuil Rusev 2014-05-01 01:47:14 +03:00
parent 2a5f99547c
commit 7c78aff578

View File

@ -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]),