Skip to content

Commit d6dbabf

Browse files
committed
JS: Ignore empty char sequences
1 parent 745f9b3 commit d6dbabf

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,7 @@ private void extractTemplateTags(
404404
int start,
405405
int end,
406406
Supplier<Label> parentLabel) {
407+
if (start >= end) return;
407408
if (isEmbedded) return; // Do not extract template tags for HTML snippets embedded in a JS file
408409

409410
LocationManager locationManager = textualExtractor.getLocationManager();

0 commit comments

Comments
 (0)