mirror of
https://github.com/github/codeql.git
synced 2026-02-12 05:01:06 +01:00
JS: Include import paths from custom ModuleImportNode::Range subclasses
This commit is contained in:
@@ -2164,6 +2164,10 @@ private predicate isDeclaredPackageName(string m) {
|
||||
|
||||
overlay[local]
|
||||
private predicate isImportedPackageName(string m) {
|
||||
m = any(Import imprt).getImportedPathString() and
|
||||
(
|
||||
m = any(Import imprt).getImportedPathString()
|
||||
or
|
||||
m = any(DataFlow::ModuleImportNode im).getPath()
|
||||
) and
|
||||
m.regexpMatch("[^./].*")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user