mirror of
https://github.com/github/codeql.git
synced 2025-12-22 11:46:32 +01:00
use matches instead of regexpMatch
This commit is contained in:
@@ -18,5 +18,5 @@ where
|
||||
// but exclude attribute top-levels: `<a href="javascript:'some-attribute-string'">`
|
||||
not d.getParent() instanceof CodeInAttribute and
|
||||
// exclude babel generated directives like "@babel/helpers - typeof".
|
||||
not d.getDirectiveText().prefix(14) = "@babel/helpers"
|
||||
not d.getDirectiveText().matches("@babel/helpers%")
|
||||
select d, "Unknown directive: '" + truncate(d.getDirectiveText(), 20, " ... (truncated)") + "'."
|
||||
|
||||
Reference in New Issue
Block a user