Skip to content

Commit 012fb28

Browse files
committed
only extract .html.erb files instead of all .erb files
1 parent ad7fc34 commit 012fb28

File tree

4 files changed

+2
-2
lines changed

4 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@
141141
* <li>All JavaScript files, that is, files with one of the extensions supported by {@link
142142
* FileType#JS} (currently ".js", ".jsx", ".mjs", ".cjs", ".es6", ".es").
143143
* <li>All HTML files, that is, files with with one of the extensions supported by {@link
144-
* FileType#HTML} (currently ".htm", ".html", ".xhtm", ".xhtml", ".vue", ".erb").
144+
* FileType#HTML} (currently ".htm", ".html", ".xhtm", ".xhtml", ".vue", ".html.erb").
145145
* <li>All YAML files, that is, files with one of the extensions supported by {@link
146146
* FileType#YAML} (currently ".raml", ".yaml", ".yml").
147147
* <li>Files with base name "package.json" or "tsconfig.json", and files whose base name

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ private static int skipBOM(byte[] bytes, int length) {
104104

105105
/** Information about supported file types. */
106106
public static enum FileType {
107-
HTML(".htm", ".html", ".xhtm", ".xhtml", ".vue", ".hbs", ".ejs", ".njk", ".erb") {
107+
HTML(".htm", ".html", ".xhtm", ".xhtml", ".vue", ".hbs", ".ejs", ".njk", ".html.erb") {
108108
@Override
109109
public IExtractor mkExtractor(ExtractorConfig config, ExtractorState state) {
110110
return new HTMLExtractor(config, state);

0 commit comments

Comments
 (0)