1
0
mirror of https://github.com/erusev/parsedown.git synced 2025-09-03 03:42:38 +02:00

In theory PHP stores the length of strings, so looking this up should be quick

This commit is contained in:
Aidan Woods
2018-04-09 01:46:36 +01:00
parent b53aa74a72
commit e74a5bd7ed

View File

@@ -1102,7 +1102,7 @@ class Parsedown
{
$marker = $excerpt[0];
$markerPosition = strpos($text, $marker);
$markerPosition = strlen($text) - strlen($excerpt);
$Excerpt = array('text' => $excerpt, 'context' => $text);