Quick change

This commit is contained in:
Kevin Stubbings
2023-08-04 00:59:28 -07:00
parent 9f4389cbb5
commit a36a555b7a

View File

@@ -103,7 +103,7 @@ public class FileExtractor {
/** Information about supported file types. */
public static enum FileType {
HTML(".htm", ".html", ".xhtm", ".xhtml", ".vue", ".hbs", ".ejs", ".njk", ".erb", ".html.dot") {
HTML(".htm", ".html", ".xhtm", ".xhtml", ".vue", ".hbs", ".ejs", ".njk", ".erb", ".dot") {
@Override
public IExtractor mkExtractor(ExtractorConfig config, ExtractorState state) {
return new HTMLExtractor(config, state);
@@ -125,6 +125,12 @@ public class FileExtractor {
return false;
}
}
// for DOT files we are only interrested in `.html.dot` files
if (FileUtil.extension(f).equalsIgnoreCase(".dot")) {
if (!f.getName().toLowerCase().endsWith(".html.dot")) {
return false;
}
}
return super.contains(f, lcExt, config);
}
},