Fix matching after wildcard

Fixes #1.