Skip to content

Commit

Permalink
Language Keys may have a : in it.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bakual committed Sep 24, 2021
1 parent fe882f6 commit a8a13ae
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 a8a13ae

Please sign in to comment.