adjust some details

Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
Simon L. 2026-01-28 15:25:16 +01:00
parent 37348fb105
commit ca6230e4c6

View file

@ -419,8 +419,14 @@ readonly class DockerActionManager {
}
// Additional Collabora options
if ($this->configurationManager->GetAdditionalCollaboraOptions() !== '') {
$requestBody['Cmd'] = preg_split('/\s+(?=-)/', $this->configurationManager->collaboraAdditionalOptions);
if ($this->configurationManager->collaboraAdditionalOptions !== '') {
// The regex not not extremely readable, should be the most thorough though.
// \s is any whitespace
// + means one or more token
// (?=<characters>) defines a positive lookahead (requirement but won't remove that character
// - the required character after an space
$regEx = '/\s+(?=-)/';
$requestBody['Cmd'] = preg_split($regEx, $this->configurationManager->collaboraAdditionalOptions);
}
}