Fix match comparator.

Wildcard match will match against any match and non-wildcard match
will not match against wildcard match.