AdminPageFramework_Parsedown::inlineUrl PHP Метод

inlineUrl() защищенный Метод

protected inlineUrl ( $Excerpt )
    protected function inlineUrl($Excerpt)
    {
        if ($this->urlsLinked !== true or !isset($Excerpt['text'][2]) or $Excerpt['text'][2] !== '/') {
            return;
        }
        if (preg_match('/\\bhttps?:[\\/]{2}[^\\s<]+\\b\\/*/ui', $Excerpt['context'], $matches, PREG_OFFSET_CAPTURE)) {
            $Inline = array('extent' => strlen($matches[0][0]), 'position' => $matches[0][1], 'element' => array('name' => 'a', 'text' => $matches[0][0], 'attributes' => array('href' => $matches[0][0])));
            return $Inline;
        }
    }