Fixed custom domain issues

This commit is contained in:
Julien Nahum
2024-01-05 11:11:27 +01:00
parent 6a0aef864b
commit 32f98d3d18
2 changed files with 2 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ class CustomDomainRequest extends FormRequest
$domains = collect($value)->filter(function ($domain) {
return !empty( trim($domain) );
})->each(function($domain) use (&$errors) {
if (!preg_match('/^[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,12}$/', $domain)) {
if (!preg_match('/^[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,20}$/', $domain)) {
$errors[] = 'Invalid domain: ' . $domain;
}
});