mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
In theory PHP stores the length of strings, so looking this up should be quick
This commit is contained in:
parent
b53aa74a72
commit
e74a5bd7ed
@ -1102,7 +1102,7 @@ class Parsedown
|
||||
{
|
||||
$marker = $excerpt[0];
|
||||
|
||||
$markerPosition = strpos($text, $marker);
|
||||
$markerPosition = strlen($text) - strlen($excerpt);
|
||||
|
||||
$Excerpt = array('text' => $excerpt, 'context' => $text);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user