1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00

Remove one unnecessary /u flag.

This commit is contained in:
Kane Cohen 2014-01-29 23:05:05 +00:00
parent f7181ee9b6
commit 07b738b1c8

View File

@ -931,7 +931,7 @@ class Parsedown
if (strpos($text, '>') !== false) if (strpos($text, '>') !== false)
{ {
if ($text[1] === 'h' and preg_match('/^<(https?:[\/]{2}[^\s]+?)>/ui', $text, $matches)) if ($text[1] === 'h' and preg_match('/^<(https?:[\/]{2}[^\s]+?)>/i', $text, $matches))
{ {
$element_url = $matches[1]; $element_url = $matches[1];
$element_url = str_replace('&', '&amp;', $element_url); $element_url = str_replace('&', '&amp;', $element_url);