Allow longer TLDs

This commit is contained in:
Julien Nahum 2023-12-29 12:26:59 +01:00
parent f3e4dcd272
commit 6a0aef864b
1 changed files with 1 additions and 1 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,5}$/', $domain)) {
if (!preg_match('/^[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,12}$/', $domain)) {
$errors[] = 'Invalid domain: ' . $domain;
}
});