firewall: groups: Fix wording of 9425ca7 (#8025)

This commit is contained in:
Monviech 2024-10-29 17:36:36 +01:00 committed by GitHub
parent 052eea3253
commit 2616ace119
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -58,10 +58,10 @@ class GroupNameField extends BaseField
$result[] = gettext('Only letters, digits and underscores are allowed as the group name.');
}
if (!empty($value) && strlen($value) > 15) {
$result[] = gettext('The group name must not be longer than 15 characters.');
$result[] = gettext('The group name shall not be longer than 15 characters.');
}
if (preg_match('/^[0-9]|[0-9]$/', $value, $match)) {
$result[] = gettext('The group name must not start or end with a digit.');
$result[] = gettext('The group name shall not start or end with a digit.');
}
$cnf = Config::getInstance()->object();
if (!empty($cnf->$value) && empty($cnf->$value->virtual)) {