added third regex to filter function, now checks multiple partials in both  orders