1
0
mirror of https://github.com/flarum/core.git synced 2025-10-19 02:36:08 +02:00

Use more precise regex to prevent some translations being compiled unnecessarily

This commit is contained in:
Toby Zerner
2016-03-29 17:31:13 +10:30
parent 76ea6f3695
commit 0b3a4264a3
3 changed files with 3 additions and 5 deletions

View File

@@ -32,7 +32,7 @@ class ClientController extends BaseClientController
/**
* {@inheritdoc}
*/
protected $translations = '/[^\.]\.(admin|lib)\.*+/';
protected $translations = '/^[^\.]+\.(?:admin|lib)\./';
/**
* @var ExtensionManager