Skip to content
This repository was archived by the owner on Jul 6, 2021. It is now read-only.

Commit 2988bf8

Browse files
authored
Merge pull request #126 from postgres-ai/fix-regex-on-hostname-and-ip
fix regexp in 'host'
2 parents c60f962 + b3ea280 commit 2988bf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ validate_arg_type() {
266266
exit 1
267267
fi
268268
elif [[ $type = "text" ]]; then
269-
re='^[a-zA-Z\;\s\\\/]+.*'
269+
re='^[a-zA-Z0-9\;\.\s\\\/]+.*'
270270
if ! [[ $value =~ $re ]]; then
271271
err "'$name' = '$value' => is not a '$type' (${re})"
272272
exit 1

0 commit comments

Comments
 (0)