Skip to content

Commit 3ad019b

Browse files
authored
Merge pull request hestiacp#2924 from jaapmarcus/fix/allow-more-chars-for-name
is_name_format_valid is only used for the name
2 parents 50542fc + c0c07a4 commit 3ad019b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

func/main.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1069,7 +1069,7 @@ is_cron_format_valid() {
10691069

10701070
# Name validator
10711071
is_name_format_valid() {
1072-
if ! [[ "$1" =~ ^[[:alnum:]][-|\ |\.|_[:alnum:]]{0,28}[[:alnum:]]$ ]]; then
1072+
if ! [[ "$1" =~ ^[-|\ |\.|_[:alnum:]]{0,50}$ ]]; then
10731073
check_result "$E_INVALID" "invalid $2 format :: $1"
10741074
fi
10751075
}

0 commit comments

Comments
 (0)