diff --git a/app/Http/Requests/Company/UpdateCompanyRequest.php b/app/Http/Requests/Company/UpdateCompanyRequest.php index 4b72c48ee8bf..d4ce94df41e7 100644 --- a/app/Http/Requests/Company/UpdateCompanyRequest.php +++ b/app/Http/Requests/Company/UpdateCompanyRequest.php @@ -63,7 +63,7 @@ class UpdateCompanyRequest extends Request if (Ninja::isHosted()) { $rules['subdomain'] = ['nullable', 'regex:/^[a-zA-Z0-9.-]+[a-zA-Z0-9]$/', new ValidSubdomain($this->all())]; } else { - $rules['subdomain'] = 'nullable|alpha_num'; + $rules['subdomain'] = 'nullable|regex:/^[a-zA-Z0-9.-]+[a-zA-Z0-9]$/'; } } diff --git a/lang/en/texts.php b/lang/en/texts.php index 009e9dee94e6..17055985e0f0 100644 --- a/lang/en/texts.php +++ b/lang/en/texts.php @@ -5087,6 +5087,8 @@ $LANG = array( 'light_dark_mode' => 'Light/Dark Mode', 'activities' => 'Activities', 'recent_transactions' => "Here are your company's most recent transactions:", + 'country_Palestine' => "Palestine", + 'country_Taiwan' => 'Taiwan', );