JS: Ignore empty char sequences

This commit is contained in:
Asger Feldthaus
2021-07-20 17:08:14 +02:00
parent 745f9b36e0
commit d6dbabf9e0

View File

@@ -404,6 +404,7 @@ public class HTMLExtractor implements IExtractor {
int start, int start,
int end, int end,
Supplier<Label> parentLabel) { Supplier<Label> parentLabel) {
if (start >= end) return;
if (isEmbedded) return; // Do not extract template tags for HTML snippets embedded in a JS file if (isEmbedded) return; // Do not extract template tags for HTML snippets embedded in a JS file
LocationManager locationManager = textualExtractor.getLocationManager(); LocationManager locationManager = textualExtractor.getLocationManager();