Skip to content

Commit 48177df

Browse files
committed
Repair version format check
1 parent 46a206b commit 48177df

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
@@ -592,7 +592,7 @@ public function validateJsonFile($originFile)
592592
{
593593
$this->output->addMessage(Output::FATAL, 'The defined version should not be empty.', $originFile);
594594
}
595-
elseif (preg_match('/^(\d+\.)?(\d+\.)?(\*|\d+)$/', $jsonContent['version']))
595+
elseif (!preg_match('/^(\d+\.)?(\d+\.)?(\*|\d+)$/', $jsonContent['version']))
596596
{
597597
$this->output->addMessage(Output::FATAL, 'The defined version is in the wrong format.', $originFile);
598598
}

0 commit comments

Comments
 (0)