mirror of
https://github.com/github/codeql.git
synced 2026-05-05 13:45:19 +02:00
JS: truncate js/unknown-directive message content
This commit is contained in:
@@ -14,4 +14,4 @@ from Directive d
|
||||
where not d instanceof KnownDirective and
|
||||
// but exclude attribute top-levels: `<a href="javascript:'some-attribute-string'">`
|
||||
not (d.getParent() instanceof CodeInAttribute)
|
||||
select d, "Unknown directive: '" + d.getDirectiveText() + "'."
|
||||
select d, "Unknown directive: '" + truncate(d.getDirectiveText(), 20, " ... (truncated)") + "'."
|
||||
|
||||
Reference in New Issue
Block a user