Skip to content

Commit b972002

Browse files
committed
dot in db name is allowed now
1 parent 449a9fb commit b972002

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

func/main.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ validate_format_domain_alias() {
636636

637637
# Database
638638
validate_format_database() {
639-
exclude="[!|@|#|$|^|&|*|(|)|+|=|{|}|:|,|.|<|>|?|/|\|\"|'|;|%|\`| ]"
639+
exclude="[!|@|#|$|^|&|*|(|)|+|=|{|}|:|,|<|>|?|/|\|\"|'|;|%|\`| ]"
640640
if [[ "$1" =~ $exclude ]] || [ 65 -le ${#1} ]; then
641641
echo "Error: $2 $1 is not valid"
642642
log_event "$E_INVALID" "$EVENT"
@@ -646,7 +646,7 @@ validate_format_database() {
646646

647647
# Database user
648648
validate_format_dbuser() {
649-
exclude="[!|@|#|$|^|&|*|(|)|+|=|{|}|:|,|.|<|>|?|/|\|\"|'|;|%|\`| ]"
649+
exclude="[!|@|#|$|^|&|*|(|)|+|=|{|}|:|,|<|>|?|/|\|\"|'|;|%|\`| ]"
650650
if [[ "$1" =~ $exclude ]] || [ 17 -le ${#1} ]; then
651651
echo "Error: $2 $1 is not valid"
652652
log_event "$E_INVALID" "$EVENT"

0 commit comments

Comments
 (0)