changed the regex for finding unused resources in the validator