Aggiornato Composer
This commit is contained in:
2
vendor/symfony/string/AbstractString.php
vendored
2
vendor/symfony/string/AbstractString.php
vendored
@@ -244,7 +244,7 @@ abstract class AbstractString implements \Stringable, \JsonSerializable
|
||||
public function collapseWhitespace(): static
|
||||
{
|
||||
$str = clone $this;
|
||||
$str->string = trim(preg_replace('/(?:\s{2,}+|[^\S ])/', ' ', $str->string));
|
||||
$str->string = trim(preg_replace("/(?:[ \n\r\t\x0C]{2,}+|[\n\r\t\x0C])/", ' ', $str->string), " \n\r\t\x0C");
|
||||
|
||||
return $str;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user