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

Detection by extension made case-insensitive #2087

Merged
merged 1 commit into from Feb 27, 2015

Conversation

pchaigno
Copy link
Contributor

@pchaigno pchaigno commented Feb 7, 2015

This is the implementation of an idea @larsbrinkhoff suggested in #2072.
With this pull request the search by file extensions is case-insensitive.
I wanted to see if it creates any issue with the detection.

It actually solves a few incorrect detections and I think it globally makes sense:
For instance, all .e files in the Rosetta project are detected as Eiffel but most of them are actually E code.
With this pull request the detection results get a lot better.
In general, it looks like lower-case and upper-case extensions are regularly mixed. See #2072, #308, #268 or #1035 for examples.

@arfon
Copy link
Contributor

arfon commented Feb 27, 2015

I've always thought this was weird. @bkeepers this seems like a good idea to me?

@bkeepers
Copy link
Contributor

👍

arfon added a commit that referenced this pull request Feb 27, 2015
Detection by extension made case-insensitive
@arfon arfon merged commit 4ef925d into github-linguist:master Feb 27, 2015
@pchaigno pchaigno deleted the case-sensitivity branch February 27, 2015 20:08
@arfon arfon mentioned this pull request Mar 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants