Make split platform independend

This commit is contained in:
Jaapio
2021-08-26 22:31:30 +02:00
parent c5ac781da3
commit bca4974b0b
5 changed files with 32 additions and 23 deletions
+1 -1
View File
@@ -146,7 +146,7 @@ class DescriptionFactory
*/
private function removeSuperfluousStartingWhitespace(string $contents): string
{
$lines = explode("\n", $contents);
$lines = Utils::pregSplit("/\r\n?|\n/", $contents);
// if there is only one line then we don't have lines with superfluous whitespace and
// can use the contents as-is