Allow longer TLDs
This commit is contained in:
parent
f3e4dcd272
commit
6a0aef864b
|
@ -32,7 +32,7 @@ class CustomDomainRequest extends FormRequest
|
||||||
$domains = collect($value)->filter(function ($domain) {
|
$domains = collect($value)->filter(function ($domain) {
|
||||||
return !empty( trim($domain) );
|
return !empty( trim($domain) );
|
||||||
})->each(function($domain) use (&$errors) {
|
})->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;
|
$errors[] = 'Invalid domain: ' . $domain;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue