Allow leading ranges in the inventory host entries.

This bugfix allows leading ranges in the inventory host entries such as:
```
[1-9].www.example.com
```

Added new test case to check exactly this situation. All other test cases pass.
```
Ran 116 tests in 17.796s

OK (SKIP=1)
```