Skip to content

Commit

Permalink
[TASK] Update regular expression to parse body (#411)
Browse files Browse the repository at this point in the history
fixes ajax text analysis returning empty body
  • Loading branch information
ebolansk authored Feb 19, 2021
1 parent 59b7232 commit 29028a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Service/PreviewService.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ protected function getDataFromContent($content, $uriToCheck): array
$content,
$matchesDescription
);
$bodyFound = preg_match("/<body[^>]*>(.*?)<\/body>/is", $content, $matchesBody);
$bodyFound = preg_match("/<body[^>]*>(.*)<\/body>/is", $content, $matchesBody);

if ($bodyFound) {
$body = $matchesBody[1];
Expand Down

0 comments on commit 29028a6

Please sign in to comment.