Merge pull request #6051 from turbo124/v5-develop

minor change for subdomain regex
This commit is contained in:
David Bomba 2021-06-17 08:39:28 +10:00 committed by GitHub
commit 119b07fe03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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';