Fix wildcard handling in get_hostmask_regex
Merge pull request #647 from ThiefMaster/patch-1

Fix wildcard handling in get_hostmask_regex