Updated the filter for matching any to use a simple indexOf instead of regex.