Skip to content

Commit

Permalink
Case insensitive README.* files are immediate
Browse files Browse the repository at this point in the history
Files with the prefix `README` are now classified as immediate, meaning
they will be highlighted amongst other things, in a case insensitive
way.
  • Loading branch information
Josh Leeb-du Toit committed Feb 15, 2018
1 parent 0eb7966 commit d9c9dbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/info/filetype.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ impl FileExtensions {
/// in order to kick off the build of a project. It’s usually only present
/// in directories full of source code.
fn is_immediate(&self, file: &File) -> bool {
file.name.starts_with("README") || file.name_is_one_of( &[
file.name.to_lowercase().starts_with("readme") || file.name_is_one_of( &[
"Makefile", "Cargo.toml", "SConstruct", "CMakeLists.txt",
"build.gradle", "Rakefile", "Gruntfile.js",
"Gruntfile.coffee",
Expand Down

0 comments on commit d9c9dbe

Please sign in to comment.