Skip to content

Commit

Permalink
Language Keys may have a : in it. (#35659)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bakual committed Sep 26, 2021
1 parent e198c08 commit 42cfca1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/src/Language/Language.php
Expand Up @@ -885,7 +885,7 @@ public function debugFile($filename)
}

// Check that the line passes the necessary format.
if (!preg_match('#^[A-Z][A-Z0-9_\*\-\.]*\s*=\s*".*"(\s*;.*)?$#', $line))
if (!preg_match('#^[A-Z][A-Z0-9_:\*\-\.]*\s*=\s*".*"(\s*;.*)?$#', $line))
{
$errors[] = $realNumber;
continue;
Expand Down

0 comments on commit 42cfca1

Please sign in to comment.