From 9836fa64ed30d228e0d33796dc0d4ed956e6fee4 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Thu, 22 Oct 2015 17:01:21 +1030 Subject: [PATCH] Allow hyphens in referenced key names --- src/Locale/YamlFileLoader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Locale/YamlFileLoader.php b/src/Locale/YamlFileLoader.php index 1022ff4af..9bd1660c4 100644 --- a/src/Locale/YamlFileLoader.php +++ b/src/Locale/YamlFileLoader.php @@ -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); }