Made possible to have test TLDs with length of 1

This commit is contained in:
Pinga 2024-02-16 07:37:59 +02:00
parent 080988155e
commit ee48a0e67d
2 changed files with 3 additions and 3 deletions

View file

@ -246,7 +246,7 @@ class SystemController extends Controller
}
$validators = [
'extension' => v::stringType()->notEmpty()->length(3, 64),
'extension' => v::stringType()->notEmpty()->length(1, 64),
'script' => v::stringType()->notEmpty(),
'createm0' => v::numericVal()->between(0.00, 9999999.99, true),
'createm12' => v::numericVal()->between(0.00, 9999999.99, true),
@ -553,7 +553,7 @@ class SystemController extends Controller
}
$validators = [
'extension' => v::stringType()->notEmpty()->length(3, 64),
'extension' => v::stringType()->notEmpty()->length(1, 64),
'createm0' => v::numericVal()->between(0.00, 9999999.99, true),
'createm12' => v::numericVal()->between(0.00, 9999999.99, true),
'createm24' => v::numericVal()->between(0.00, 9999999.99, true),

View file

@ -45,7 +45,7 @@
</div>
<div class="mb-3">
<label for="tldTypeSelector" class="form-label">{{ __('TLD Type') }}</label>
<div class="form-control-plaintext">{{ tld_u|length == 3 ? 'ccTLD' : (tld_u|length > 3 ? 'gTLD' : '') }}</div>
<div class="form-control-plaintext">{{ tld_u|length == 3 ? 'ccTLD' : (tld_u|length > 3 ? 'gTLD' : (tld_u|length == 2 ? 'Test TLD' : '')) }}</div>
</div>
<div class="mb-3">
<label for="scriptDropdown" class="form-label">{{ __('Supported Script') }}</label>