Skip to content

Commit

Permalink
Oops
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Jul 8, 2024
1 parent 20d81aa commit d945a43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Package/Updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ private function prepareReadme(string $readme, ?string $host = null, ?string $ow

// remove first page element if it's a <h1> or <h2>, because it's usually
// the project name or the `README` string which we don't need
$readme = Preg::replace('{^<(h[12])[^>]+>.*</(?1)>}', '', $readme);
$readme = Preg::replace('{^<(h[12])[^>]*>.*</(?1)>}', '', $readme);

return str_replace("\r\n", "\n", $readme);
}
Expand Down

0 comments on commit d945a43

Please sign in to comment.