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:
@@ -32,7 +32,7 @@ class ClientController extends BaseClientController
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected $translations = '/[^\.]\.(admin|lib)\.*+/';
|
||||
protected $translations = '/^[^\.]+\.(?:admin|lib)\./';
|
||||
|
||||
/**
|
||||
* @var ExtensionManager
|
||||
|
Reference in New Issue
Block a user