Skip to content

Commit c028638

Browse files
committed
JS: Raise limit to 1000
1 parent 6f15eff commit c028638

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ public Label visit(Literal nd, Context c) {
520520
OffsetTranslation offsets = new OffsetTranslation();
521521
offsets.set(0, 1); // skip the initial '/'
522522
regexpExtractor.extract(source.substring(1, source.lastIndexOf('/')), offsets, nd, false);
523-
} else if (nd.isStringLiteral() && !c.isInsideType() && nd.getRaw().length() < 100) {
523+
} else if (nd.isStringLiteral() && !c.isInsideType() && nd.getRaw().length() < 1000) {
524524
regexpExtractor.extract(valueString, makeStringLiteralOffsets(nd.getRaw()), nd, true);
525525
}
526526
return key;

0 commit comments

Comments
 (0)