Skip to content

Commit a78a007

Browse files
committed
Add a ! to preg_match of english-name value check
1 parent abf36b6 commit a78a007

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Phpbb/TranslationValidator/Validator/FileValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ public function validateJsonFile($originFile)
641641
$this->output->addMessage(Output::FATAL, 'Language iso is not valid', $originFile);
642642
}
643643
// Check for english name
644-
if ($jsonContent['extra']['english-name'] == '' || preg_match('/^[a-zA-Z\s]+$/', $jsonContent['extra']['english-name']))
644+
if ($jsonContent['extra']['english-name'] == '' || !preg_match('/^[a-zA-Z\s]+$/', $jsonContent['extra']['english-name']))
645645
{
646646
$this->output->addMessage(Output::ERROR, 'The english-name value should only contain letters aA-zZ and spaces.', $originFile);
647647
}

0 commit comments

Comments
 (0)