Skip to content

Commit 505168f

Browse files
committed
fix upper-case .html.erb files
1 parent 271cc6b commit 505168f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/extractor/src/com/semmle/js/extractor/FileExtractor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ protected boolean contains(File f, String lcExt, ExtractorConfig config) {
122122
}
123123
// for ERB files we are only interrested in `.html.erb` files
124124
if (FileUtil.extension(f).equalsIgnoreCase(".erb")) {
125-
if (!f.getName().endsWith(".html.erb")) {
125+
if (!f.getName().toLowerCase().endsWith(".html.erb")) {
126126
return false;
127127
}
128128
}

0 commit comments

Comments
 (0)