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 46a206b commit 48177dfCopy full SHA for 48177df
1 file changed
src/Phpbb/TranslationValidator/Validator/FileValidator.php
@@ -592,7 +592,7 @@ public function validateJsonFile($originFile)
592
{
593
$this->output->addMessage(Output::FATAL, 'The defined version should not be empty.', $originFile);
594
}
595
- elseif (preg_match('/^(\d+\.)?(\d+\.)?(\*|\d+)$/', $jsonContent['version']))
+ elseif (!preg_match('/^(\d+\.)?(\d+\.)?(\*|\d+)$/', $jsonContent['version']))
596
597
$this->output->addMessage(Output::FATAL, 'The defined version is in the wrong format.', $originFile);
598
0 commit comments