Skip to content

Adobe Illustrator 2020 files detected as text #223

@aerickson

Description

@aerickson

pre-commit ended up mangling some of my files because identify thinks they're text files.

They have text at the start, but binary later it seems like.

$  identify-cli red_square_blue_circle.ai
["file", "non-executable", "text"]

my .pre-commit-config.yml (trailing whitespace and end-of-file-fixer did the damage)

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
  rev: v3.4.0
  hooks:
    -   id: trailing-whitespace
    -   id: end-of-file-fixer
    -   id: check-yaml
    -   id: check-added-large-files

red_square_blue_circle.ai.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions