We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abf36b6 commit a78a007Copy full SHA for a78a007
1 file changed
src/Phpbb/TranslationValidator/Validator/FileValidator.php
@@ -641,7 +641,7 @@ public function validateJsonFile($originFile)
641
$this->output->addMessage(Output::FATAL, 'Language iso is not valid', $originFile);
642
}
643
// Check for english name
644
- if ($jsonContent['extra']['english-name'] == '' || preg_match('/^[a-zA-Z\s]+$/', $jsonContent['extra']['english-name']))
+ if ($jsonContent['extra']['english-name'] == '' || !preg_match('/^[a-zA-Z\s]+$/', $jsonContent['extra']['english-name']))
645
{
646
$this->output->addMessage(Output::ERROR, 'The english-name value should only contain letters aA-zZ and spaces.', $originFile);
647
0 commit comments