Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not detecting file from content, prior on extension #6

Closed
latot opened this issue Jun 15, 2020 · 2 comments
Closed

not detecting file from content, prior on extension #6

latot opened this issue Jun 15, 2020 · 2 comments

Comments

@latot
Copy link

latot commented Jun 15, 2020

Hi, i have a file named f819602984.java, was recovered from photorec, is one of my javascript files, i try detect the type with enry but the result was:

f819602984.java: 290 lines (272 sloc)
  type:      Text
  mime_type: text/x-java
  language:  Java
  vendored:  false

Thx.

@bzz
Copy link
Member

bzz commented Jun 15, 2020

Right now this works as intended, as by default enry mimics the https://github.com/github/linguist#how-linguist-works.

Thank you for rising this, I'm going to close it, taking it as a vote in favour of implementing #2

@bzz bzz closed this as completed Jun 15, 2020
@latot
Copy link
Author

latot commented Jun 15, 2020

Hi, that would be great, just feels weird to follow only the extension and don't compare extension vs content.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants