remove trailing spaces

This commit is contained in:
troosan 2018-11-16 23:33:38 +01:00 committed by GitHub
parent c51b6febc0
commit 925e9e0919
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -514,7 +514,7 @@ class TemplateProcessor
$pattern = '~PartName="\/(word\/document.*?\.xml)" ContentType="application\/vnd\.openxmlformats-officedocument\.wordprocessingml\.document\.main\+xml"~';
preg_match($pattern, $contentTypes, $matches);
return (array_key_exists(1, $matches) ? $matches[1] : 'word/document.xml');
}