text->indexOf(']:') === \false) return; $regexp = '/^\\x1A* {0,3}\\[([^\\x17\\]]+)\\]: *([^[\\s\\x17]+ *(?:"[^\\x17]*?"|\'[^\\x17]*?\'|\\([^\\x17)]*\\))?) *(?=$|\\x17)\\n?/m'; \preg_match_all($regexp, $this->text, $matches, \PREG_OFFSET_CAPTURE | \PREG_SET_ORDER); foreach ($matches as $m) { $this->parser->addIgnoreTag($m[0][1], \strlen($m[0][0])); $id = \strtolower($m[1][0]); if (!isset($this->text->linkReferences[$id])) { $this->text->hasReferences = \true; $this->text->linkReferences[$id] = $m[2][0]; } } } }