Merge pull request #124 from whiteroses/fix-issue-123

Accept hostname targets that do not contain a period.
This commit is contained in:
Sajeeb Lohani
2020-10-26 20:07:24 +11:00
committed by GitHub
2 changed files with 2 additions and 5 deletions

View File

@@ -1 +1 @@
__version__ = '1.9.0'
__version__ = '1.9.1'

View File

@@ -187,10 +187,7 @@ class InputHelper(object):
for target_spec in target_specs:
if (
target_spec.startswith(".") or
(
(target_spec[0].isalpha() or target_spec[-1].isalpha())
and "." in target_spec
) or
(target_spec[0].isalpha() or target_spec[-1].isalpha()) or
(nocidr and "/" in target_spec)
):
str_targets.add(target_spec)