mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
Disable backtracking where the regex doesn't need it
This commit is contained in:
parent
721b885dd3
commit
19f1bb9353
@ -1142,7 +1142,7 @@ class Parsedown
|
|||||||
|
|
||||||
protected function inlineEmailTag($Excerpt)
|
protected function inlineEmailTag($Excerpt)
|
||||||
{
|
{
|
||||||
$commonMarkEmail = '[a-zA-Z0-9.!#$%&\'*+\/=?^_`{|}~-]+@[a-zA-Z0-9]'
|
$commonMarkEmail = '[a-zA-Z0-9.!#$%&\'*+\/=?^_`{|}~-]++@[a-zA-Z0-9]'
|
||||||
.'(?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?'
|
.'(?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?'
|
||||||
.'(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*'
|
.'(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*'
|
||||||
;
|
;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user