We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2b5fd94 + dddd7a5 commit b72df95Copy full SHA for b72df95
app/functions.sh
@@ -43,7 +43,11 @@ function ascending_wildcard_locations {
43
until [[ "$domain" =~ $regex ]]; do
44
first_label="${domain%%.*}"
45
domain="${domain/${first_label}./}"
46
- echo "*.${domain}"
+ if [[ -z "$domain" ]]; then
47
+ return
48
+ else
49
+ echo "*.${domain}"
50
+ fi
51
done
52
}
53
@@ -59,7 +63,11 @@ function descending_wildcard_locations {
59
63
60
64
last_label="${domain##*.}"
61
65
domain="${domain/.${last_label}/}"
62
- echo "${domain}.*"
66
67
68
69
+ echo "${domain}.*"
70
71
72
73
0 commit comments