mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
minor change for subdomain regex
This commit is contained in:
parent
5c0c7f70b7
commit
28b5d01804
@ -50,7 +50,7 @@ class UpdateCompanyRequest extends Request
|
|||||||
} else {
|
} else {
|
||||||
|
|
||||||
if(Ninja::isHosted()){
|
if(Ninja::isHosted()){
|
||||||
$rules['subdomain'] = ['nullable', 'regex:/^[a-zA-Z0-9][a-zA-Z0-9.-]+[a-zA-Z0-9]$/', new ValidSubdomain($this->all())];
|
$rules['subdomain'] = ['nullable', 'regex:/^[a-zA-Z0-9.-]+[a-zA-Z0-9]$/', new ValidSubdomain($this->all())];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
$rules['subdomain'] = 'nullable|alpha_num';
|
$rules['subdomain'] = 'nullable|alpha_num';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user