You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (!$jsonContent['name'] == (substr($originFile, 21) ==='phpbb/phpbb-language-'))
563
+
if (!str_starts_with($jsonContent['name'],'phpbb/phpbb-language-'))
564
564
{
565
-
$this->output->addMessage(Output::FATAL, 'File must have name value which starts with phpbb/phpbb-language- following by the language iso code', $originFile);
565
+
$this->output->addMessage(Output::FATAL, 'Name should start with phpbb/phpbb-language- followed by the language iso code', $originFile);
566
566
}
567
567
568
568
if (!array_key_exists('description', $jsonContent))
@@ -617,7 +617,7 @@ public function validateJsonFile($originFile)
617
617
$this->output->addMessage(Output::FATAL, 'The extra section is missing.', $originFile);
618
618
}
619
619
// language-iso must be valid
620
-
if (preg_match('/^(?:[a-z]*_?){0,2}[a-z]*$/', $jsonContent['extra']['language-iso']))
620
+
if (!preg_match('/^(?:[a-z]*_?){0,2}[a-z]*$/', $jsonContent['extra']['language-iso']))
621
621
{
622
622
$this->output->addMessage(Output::FATAL, 'The language-iso should only contain small letters from a to z and maximum two underscores.', $originFile);
0 commit comments