Commit 7034a09
committed
Accept hostname targets that do not contain a period.
This fixes issue #123, which was due to a misinterpretation of the
line
`if host.split(".")[0][0].isalpha() or host.split(".")[-1][-1].isalpha():`
(see commit 8d46d14, L156). Because of
how Python's str.split() works, a hostname that does not contain a
period when .split(".") results in a single-item list, so this
expression evaluates to True. However, this also means that the
.split()s had no effect: the line was equivalent to
`if host[0].isalpha() or host[-1].isalpha()`.1 parent 9ba669d commit 7034a09
1 file changed
+1
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
| 190 | + | |
194 | 191 | | |
195 | 192 | | |
196 | 193 | | |
| |||
0 commit comments