fix imagick problem, for some reason it must be in the --start-group --end-group

This commit is contained in:
DubbleClick
2025-07-25 09:59:24 +07:00
parent 7eb5fb4520
commit 00e78dd84f
5 changed files with 27 additions and 11 deletions

View File

@@ -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));
}