mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-02-17 03:00:21 +00:00
adjust some details
Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
parent
37348fb105
commit
ca6230e4c6
1 changed files with 8 additions and 2 deletions
|
|
@ -419,8 +419,14 @@ readonly class DockerActionManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Additional Collabora options
|
// Additional Collabora options
|
||||||
if ($this->configurationManager->GetAdditionalCollaboraOptions() !== '') {
|
if ($this->configurationManager->collaboraAdditionalOptions !== '') {
|
||||||
$requestBody['Cmd'] = preg_split('/\s+(?=-)/', $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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue