[bug] host-pattern rule do not compatible with older versions

in older versions, list_host = re.search(group.name) + re.search(host.name)

in version 1.7.2, list_host = re.search(group.name) + re.match(host.name)

for example, in v1.6

[chengshengbo@sd-ml-im-tool01 tmp]$ ansible ‘~a-fe’ --list

sd-a-fe01.bj

sd-a-fe02.bj

sd-a-fe03.bj

sd-a-fe04.bj

but in v1.7.2

[chengshengbo@sd-ml-im-tool01 tmp]$ ansible ‘~a-fe’ --list

No host matched

it should be a bug, hopes can fix it:
https://github.com/iambocai/ansible/commit/f475c5a6e927bb69eb0487a43291cf7304be8e54

Hi Bob,

You can report this at http://github.com/ansible/ansible.

Thanks!