Merge pull request #6051 from turbo124/v5-develop
minor change for subdomain regex
This commit is contained in:
commit
119b07fe03
1 changed files with 1 additions and 1 deletions
|
|
@ -50,7 +50,7 @@ class UpdateCompanyRequest extends Request
|
|||
} else {
|
||||
|
||||
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
|
||||
$rules['subdomain'] = 'nullable|alpha_num';
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue