|
@@ 1149-1152 (lines=4) @@
|
| 1146 |
|
|
| 1147 |
|
protected function inlineImage($Excerpt) |
| 1148 |
|
{ |
| 1149 |
|
if ( ! isset($Excerpt['text'][1]) or $Excerpt['text'][1] !== '[') |
| 1150 |
|
{ |
| 1151 |
|
return; |
| 1152 |
|
} |
| 1153 |
|
|
| 1154 |
|
$Excerpt['text']= substr($Excerpt['text'], 1); |
| 1155 |
|
|
|
@@ 1329-1332 (lines=4) @@
|
| 1326 |
|
|
| 1327 |
|
protected function inlineUrl($Excerpt) |
| 1328 |
|
{ |
| 1329 |
|
if ($this->urlsLinked !== true or ! isset($Excerpt['text'][2]) or $Excerpt['text'][2] !== '/') |
| 1330 |
|
{ |
| 1331 |
|
return; |
| 1332 |
|
} |
| 1333 |
|
|
| 1334 |
|
if (preg_match('/\bhttps?:[\/]{2}[^\s<]+\b\/*/ui', $Excerpt['context'], $matches, PREG_OFFSET_CAPTURE)) |
| 1335 |
|
{ |