mirror of
https://github.com/flarum/framework.git
synced 2025-01-19 07:42:48 +08:00
Allow hyphens in referenced key names
This commit is contained in:
parent
415b68f84f
commit
9836fa64ed
|
@ -33,7 +33,7 @@ class YamlFileLoader extends BaseYamlFileLoader
|
|||
{
|
||||
$translation = $messages->get($id, $domain);
|
||||
|
||||
if (preg_match('/^=>\s*([a-z0-9_\.]+)$/i', $translation, $matches)) {
|
||||
if (preg_match('/^=>\s*([a-z0-9_\-\.]+)$/i', $translation, $matches)) {
|
||||
return $this->getTranslation($messages, $matches[1], $domain);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user