Make the resources regular expression more forgiving.