mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-02-04 04:56:52 +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
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue