mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-06 08:15:39 +08:00
fix imagick problem, for some reason it must be in the --start-group --end-group
This commit is contained in:
@@ -242,3 +242,12 @@ function get_pack_replace(): array
|
||||
BUILD_ROOT_PATH => '@build_root_path@',
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $string
|
||||
* @return string without double spaces
|
||||
*/
|
||||
function deduplicate_spaces($string): string
|
||||
{
|
||||
return trim(preg_replace('/\s+/', ' ', $string));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user