Skip to content

Commit

Permalink
Merge pull request #25 from b4rtaz/master
Browse files Browse the repository at this point in the history
fix bug: jsonld parsed only a first script element.
  • Loading branch information
jkphl committed Dec 15, 2018
2 parents 21058a9 + d81c9dd commit 9fe8f35
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Micrometa/Infrastructure/Parser/JsonLD.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ public function parseDom(\DOMDocument $dom)
$jsonLDDocSource = preg_replace(self::JSON_COMMENT_PATTERN, '', $jsonLDDoc->textContent);
$i = $this->parseDocument($jsonLDDocSource);
$items = array_merge($items, $i);
break;
}

return new ParsingResult(self::FORMAT, $items);
Expand Down

0 comments on commit 9fe8f35

Please sign in to comment.