mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Update common.php
This commit is contained in:
parent
3911e72dba
commit
3793263ff0
1 changed files with 1 additions and 1 deletions
|
@ -245,7 +245,7 @@ function htmlCHR($txt, bool $double_encode = false, int $quote_style = ENT_QUOTE
|
|||
function str_compact(string|null $str): ?string
|
||||
{
|
||||
$str ??= '';
|
||||
return preg_replace('#\s+#u', ' ', trim($str));
|
||||
return preg_replace('/\s\s+/', ' ', trim($str));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue