mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-05 22:05:47 -05:00
Fix extension translations staying cached after an extension update
Fixes #7245
This commit is contained in:
@@ -16,6 +16,8 @@ class LocaleRequest extends FormRequest
|
||||
return [
|
||||
'locale' => ['required', 'string', 'regex:/^[a-z][a-z]$/'],
|
||||
'namespace' => ['required', 'string', 'regex:/^(?:[a-z]{1,191}|ext-[a-z][a-z0-9-]{0,47}::[a-z][a-z0-9_-]{0,63})$/'],
|
||||
// The revision of an extension's translations, which only makes the URL unique.
|
||||
'revision' => ['sometimes', 'string', 'regex:/^[a-f0-9]{32}$/'],
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user