This commit is contained in:
salam committed 2026-04-15 08:31:43 +02:00
1 parent c8a8064430
commit 9b78ba69a6
8 files changed
+178 -149

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
<?php
namespace App\Actions\Helper;
class LineEndings
{
public static function convert($string)
{
$string = preg_replace('~\R~', PHP_EOL, $string);
// Don't allow out-of-control blank lines.
// $string = preg_replace("/\n{3,}/", "\n\n", $string);
return $string;
}
}