Skip to content

Commit

Permalink
Use case insensitive matching for file extensions for submission files
Browse files Browse the repository at this point in the history
  • Loading branch information
nygrenh committed Feb 21, 2024
1 parent 81620f5 commit 482274e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/source_file_list.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def self.find_all_files_under(root_dir)
def self.source_file?(file)
return false unless file.file?
dir = file.parent.to_s
name = file.basename.to_s
name = file.basename.to_s.downcase
name.end_with?('.java', '.jsp') ||
(name.end_with?('.xml') && name != 'build.xml' && name != 'pom.xml' && name != 'nbactions.xml' && !name.end_with?('checkstyle.xml')) ||
name.end_with?('.properties') ||
Expand All @@ -134,7 +134,7 @@ def self.source_file?(file)
name.end_with?('.hpp') ||
name.end_with?('.h') ||
name.end_with?('.rb') ||
(dir.include?('/R') && name.end_with?('.R')) ||
(dir.include?('/R') && name.end_with?('.r')) ||
(dir.include?('/src') && name.end_with?('.py')) ||
dir.include?('/WEB-INF') ||
name.end_with?('.cs')
Expand Down

0 comments on commit 482274e

Please sign in to comment.