Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 29dd847

Browse files
committed
JS: Fix offset of *ngFor snippet
1 parent 0da207a commit 29dd847

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public void handleElement(Element elt) {
113113
config.withSourceType(SourceType.ANGULAR_TEMPLATE),
114114
scopeManager,
115115
textualExtractor,
116-
source,
116+
source.substring(offset),
117117
valueStart.getRow(),
118118
valueStart.getColumn() + offset,
119119
false /* isTypeScript */);

0 commit comments

Comments
 (0)