mirror of
https://github.com/github/codeql.git
synced 2025-12-21 19:26:31 +01:00
JS: Ignore empty char sequences
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user