mirror of
https://github.com/github/codeql.git
synced 2026-04-25 08:45:14 +02:00
Quick change
This commit is contained in:
@@ -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);
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user