old_contents: 
  
  def split_resources(pkg_dict):
      """
      Splits the resources in the provided package based on the format field
      with DOC, DOCX, PDF being returned as documents, all other formats as data
      """
      document_formats = ["DOC", "DOCX", "PDF"]
      documents, data = [], []
      for resource in pkg_dict["resources"]:
          target = documents if resource.get("format", "") in document_formats \
                             else data
          target.append(resource)
      return documents, data
  
new_contents: 
  
  def split_resources(pkg_dict):
      """
      Splits the resources in the provided package based on the format field
      with DOC, DOCX, PDF being returned as documents, all other formats as data
      """
      document_formats = ["DOC", "DOCX", "PDF"]
      documents, data = [], []
      for resource in pkg_dict["resources"]:
          target = documents if resource.get("format", "").upper() in document_formats \
                             else data
          target.append(resource)
      return documents, data
  
subject: Fix format check to ignore case.