Merge pull request #180 from orimanabu/fix_host_regexp

Exclude ':PORT' from  when endopint URL contains port number.
This commit is contained in:
Olav Morken 2018-09-04 14:20:48 +02:00 committed by GitHub
commit 32a3dd423c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ if ! echo "$BASEURL" | grep -q '^https\?://'; then
exit 1
fi
HOST="$(echo "$BASEURL" | sed 's#^[a-z]*://\([^/]*\).*#\1#')"
HOST="$(echo "$BASEURL" | sed 's#^[a-z]*://\([^:/]*\).*#\1#')"
BASEURL="$(echo "$BASEURL" | sed 's#/$##')"
OUTFILE="$(echo "$ENTITYID" | sed 's/[^0-9A-Za-z.]/_/g' | sed 's/__*/_/g')"