fix upper-case .html.erb files

This commit is contained in:
erik-krogh
2023-02-27 17:19:43 +01:00
parent 271cc6b961
commit 505168f24b

View File

@@ -122,7 +122,7 @@ public class FileExtractor {
}
// for ERB files we are only interrested in `.html.erb` files
if (FileUtil.extension(f).equalsIgnoreCase(".erb")) {
if (!f.getName().endsWith(".html.erb")) {
if (!f.getName().toLowerCase().endsWith(".html.erb")) {
return false;
}
}