diff --git a/plugins/importexport/csv/CSVImportExportPlugin.php b/plugins/importexport/csv/CSVImportExportPlugin.php index 6a72792f729..9b8b797fd6e 100644 --- a/plugins/importexport/csv/CSVImportExportPlugin.php +++ b/plugins/importexport/csv/CSVImportExportPlugin.php @@ -206,7 +206,7 @@ public function executeCLI($scriptName, &$args) // But default to press email address based on press path if not present. $givenName = $familyName = $emailAddress = null; $authorString = trim($authorString); // whitespace. - if (!preg_match('/^(\w+)([\w\s]+)?(<([^>]+)>)?$/', $authorString, $matches)) { + if (!preg_match('/^([\w.\s]+)\s+([\w\s-]+)?\s*(<([^>]+)>)?$/', $authorString, $matches)) { echo __('plugins.importexport.csv.invalidAuthor', ['author' => $authorString]) . "\n"; continue; }